Home
last modified time | relevance | path

Searched refs:getType (Results 1 - 25 of 1872) sorted by relevance

12345678910>>...75

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp40 ParamTys.push_back((*I)->getType()); in ReplaceCallWith()
55 assert(V->getType()->isIntOrIntVectorTy() && "Can't bswap a non-integer type!"); in LowerBSWAP()
57 unsigned BitSize = V->getType()->getScalarSizeInBits(); in LowerBSWAP()
64 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
66 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
72 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP()
74 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
76 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
78 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), in LowerBSWAP()
81 ConstantInt::get(V->getType(), in LowerBSWAP()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp36 return ConstantInt::get(Val->getType(), 0); in decomposeSimpleLinearExpr()
86 PointerType *PTy = cast<PointerType>(CI.getType()); in PromoteCastOfAllocation()
132 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale); in PromoteCastOfAllocation()
138 Value *Off = ConstantInt::get(AI.getArraySize()->getType(), in PromoteCastOfAllocation()
154 Value *NewCast = AllocaBuilder.CreateBitCast(New, AI.getType(), "tmpcast"); in PromoteCastOfAllocation()
199 if (I->getOperand(0)->getType() == Ty) in EvaluateInDifferentType()
269 auto *Ty = CI.getType(); in commonCastTransforms()
284 if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType()) in commonCastTransforms()
295 if (!Src->getType() in commonCastTransforms()
[all...]
H A DInstCombinePHI.cpp97 if (!PN.getType()->isIntegerTy()) in FoldIntegerTypedPHI()
128 DL.getTypeSizeInBits(IntToPtr->getOperand(0)->getType())) in FoldIntegerTypedPHI()
144 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in FoldIntegerTypedPHI()
191 if (PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType()) in FoldIntegerTypedPHI()
207 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in FoldIntegerTypedPHI()
211 IntToPtr->getOperand(0)->getType()); in FoldIntegerTypedPHI()
216 return (V->getType() ! in FoldIntegerTypedPHI()
[all...]
H A DInstCombineCalls.cpp136 MI->setLength(Constant::getNullValue(MI->getLength()->getType())); in SimplifyAnyMemTransfer()
165 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyAnyMemTransfer()
167 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyAnyMemTransfer()
229 MI->setLength(Constant::getNullValue(MemOpLength->getType())); in SimplifyAnyMemTransfer()
246 MI->setLength(Constant::getNullValue(MI->getLength()->getType())); in SimplifyAnyMemSet()
253 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyAnyMemSet()
272 unsigned DstAddrSp = cast<PointerType>(Dest->getType())->getAddressSpace(); in SimplifyAnyMemSet()
285 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyAnyMemSet()
374 auto VT = cast<VectorType>(CDV->getType()); in simplifyX86immShift()
391 auto VT = cast<VectorType>(Vec->getType()); in simplifyX86immShift()
[all...]
/third_party/vk-gl-cts/framework/randomshaders/
H A DrsgVariableValue.cpp35 DE_ASSERT(a.getType() == b.getType()); in compareValueRangesAllTrue()
37 if (a.getType().isStruct()) in compareValueRangesAllTrue()
39 int numMembers = (int)a.getType().getMembers().size(); in compareValueRangesAllTrue()
46 else if (a.getType().isArray()) in compareValueRangesAllTrue()
48 int numElements = (int)a.getType().getNumElements(); in compareValueRangesAllTrue()
57 int numElements = (int)a.getType().getNumElements(); in compareValueRangesAllTrue()
58 switch (a.getType().getBaseType()) in compareValueRangesAllTrue()
184 : m_type (other.getType()) in ValueRange()
185 , m_min (other.getType() in ValueRange()
[all...]
H A DrsgVariableValue.hpp79 const VariableType& getType (void) const { return m_type; } in getType() function in rsg::StridedValueRead
94 const VariableType& getType (void) const { return *m_type; } in getType() function in rsg::ConstStridedValueAccess
97 ConstStridedValueAccess component (int compNdx) const { return ConstStridedValueAccess(getType().getElementType(), m_value + Stride*compNdx); } in component()
98 ConstStridedValueAccess arrayElement (int elementNdx) const { return ConstStridedValueAccess(getType().getElementType(), m_value + Stride*getType().getElementScalarOffset(elementNdx)); } in arrayElement()
99 ConstStridedValueAccess member (int memberNdx) const { return ConstStridedValueAccess(getType().getMembers()[memberNdx].getType(), m_value + Stride*getType().getMemberScalarOffset(memberNdx)); } in member()
115 StridedValueRead<Stride> value (void) const { return StridedValueRead<Stride>(getType(), m_value); } in value()
130 StridedValueAccess component (int compNdx) { return StridedValueAccess(this->getType()
203 const VariableType& getType (void) const { return *m_type; } getType() function in rsg::ConstValueRangeAccess
280 const VariableType& getType (void) const { return m_type; } getType() function in rsg::ValueRange
359 const VariableType& getType (void) const { return m_variable->getType(); } getType() function in rsg::VariableValue
[all...]
H A DrsgBinaryOps.cpp172 DE_ASSERT(dst.getType() == a.getType()); in evaluate()
173 DE_ASSERT(dst.getType() == b.getType()); in evaluate()
174 DE_ASSERT(dst.getType().getBaseType() == VariableType::TYPE_FLOAT); in evaluate()
176 for (int elemNdx = 0; elemNdx < dst.getType().getNumElements(); elemNdx++) in evaluate()
186 DE_ASSERT(a.getType() == b.getType()); in evaluate()
187 DE_ASSERT(dst.getType().getBaseType() == VariableType::TYPE_BOOL); in evaluate()
189 for (int elemNdx = 0; elemNdx < dst.getType() in evaluate()
[all...]
H A DrsgExpression.cpp77 if (entry->getValueRange().getType() != m_valueRange.getType()) in operator ()()
103 entry->getVariable()->getType() == m_valueRange.getType() && in operator ()()
124 entry->getVariable()->getType() == m_valueRange.getType() && in operator ()()
145 if (entry->getVariable()->getType() == VariableType(m_type, 1)) in operator ()()
166 const VariableType& type = valueRange.getType(); in computeRandomValueRangeForInfElements()
225 const VariableType& type = valueRange.getType(); in setInfiniteRange()
366 if (valueRange.getType() in FloatLiteral()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
H A DConstants.cpp57 if (getType()->isFPOrFPVectorTy()) in isNegativeZeroValue()
163 if (this->getType()->isVectorTy()) { in isNotOneValue()
164 unsigned NumElts = this->getType()->getVectorNumElements(); in isNotOneValue()
213 if (this->getType()->isVectorTy()) { in isNotMinSignedValue()
214 unsigned NumElts = this->getType()->getVectorNumElements(); in isNotMinSignedValue()
230 if (!getType()->isVectorTy()) in isFiniteNonZeroFP()
232 for (unsigned i = 0, e = getType()->getVectorNumElements(); i != e; ++i) { in isFiniteNonZeroFP()
243 if (!getType()->isVectorTy()) in isNormalFP()
245 for (unsigned i = 0, e = getType()->getVectorNumElements(); i != e; ++i) { in isNormalFP()
256 if (!getType() in hasExactInverseFP()
[all...]
H A DConstantFold.cpp54 if (NumElts != CV->getType()->getVectorNumElements()) in BitCastConstantVector()
86 Type *SrcTy = Op->getOperand(0)->getType(); in foldConstantCastPair()
87 Type *MidTy = Op->getType(); in foldConstantCastPair()
102 Type *SrcTy = V->getType(); in FoldBitCast()
108 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) in FoldBitCast()
140 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { in FoldBitCast()
189 if (FP->getType()->isPPC_FP128Ty()) in FoldBitCast()
214 assert(C->getType()->isIntegerTy() && in ExtractConstantBytes()
215 (cast<IntegerType>(C->getType())->getBitWidth() & 7) == 0 && in ExtractConstantBytes()
217 unsigned CSize = cast<IntegerType>(C->getType()) in ExtractConstantBytes()
[all...]
H A DInstructions.cpp80 if (Op1->getType() != Op2->getType()) in areInvalidOperands()
83 if (Op1->getType()->isTokenTy()) in areInvalidOperands()
86 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) { in areInvalidOperands()
90 VectorType *ET = dyn_cast<VectorType>(Op1->getType()); in areInvalidOperands()
96 } else if (Op0->getType() != Type::getInt1Ty(Op0->getContext())) { in areInvalidOperands()
107 : Instruction(PN.getType(), Instruction::PHI, nullptr, PN.getNumOperands()), in PHINode()
135 replaceAllUsesWith(UndefValue::get(getType())); in removeIncomingValue()
167 return UndefValue::get(getType()); in hasConstantValue()
206 : Instruction(LP.getType(), Instructio in LandingPadInst()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/FuzzMutate/
H A DOpDescriptor.h97 return V->getType() == Only; in onlyType()
107 return !V->getType()->isVoidTy(); in anyType()
115 return V->getType()->isIntegerTy(); in anyIntType()
123 return V->getType()->isFloatingPointTy(); in anyFloatType()
131 return V->getType()->isPointerTy() && !V->isSwiftError(); in anyPtrType()
148 if (const auto *PtrT = dyn_cast<PointerType>(V->getType())) in sizedPtrType()
167 if (isa<ArrayType>(V->getType())) in anyAggregateType()
168 return V->getType()->getArrayNumElements() > 0; in anyAggregateType()
171 if (isa<StructType>(V->getType())) in anyAggregateType()
172 return V->getType() in anyAggregateType()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DScalarEvolutionExpander.cpp55 if (U->getType() == Ty) in ReuseOrCreateCast()
115 assert(SE.getTypeSizeInBits(V->getType()) == SE.getTypeSizeInBits(Ty) && in InsertNoopCastOfTo()
120 if (V->getType() == Ty) in InsertNoopCastOfTo()
123 if (CI->getOperand(0)->getType() == Ty) in InsertNoopCastOfTo()
129 SE.getTypeSizeInBits(Ty) == SE.getTypeSizeInBits(V->getType())) { in InsertNoopCastOfTo()
133 SE.getTypeSizeInBits(CI->getType()) == in InsertNoopCastOfTo()
134 SE.getTypeSizeInBits(CI->getOperand(0)->getType())) in InsertNoopCastOfTo()
139 SE.getTypeSizeInBits(CE->getType()) == in InsertNoopCastOfTo()
140 SE.getTypeSizeInBits(CE->getOperand(0)->getType())) in InsertNoopCastOfTo()
252 S = SE.getConstant(S->getType(), in FactorOutConstant()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
H A DTextureGL.cpp144 mLevelInfo.resize(GetMaxLevelInfoCountForTextureType(getType())); in TextureGL()
198 nativegl::UseTexImage3D(getType()), pixels, &apply)); in setImage()
232 ASSERT(TextureTargetToType(target) == getType()); in setImageHelper()
241 stateManager->bindTexture(getType(), mTextureID); in setImageHelper()
249 if (nativegl::UseTexImage2D(getType())) in setImageHelper()
260 ASSERT(nativegl::UseTexImage3D(getType())); in setImageHelper()
271 if (features.setZeroLevelBeforeGenerateMipmap.enabled && getType() == gl::TextureType::_2D && in setImageHelper()
318 ASSERT(TextureTargetToType(index.getTarget()) == getType()); in setSubImage()
333 stateManager->bindTexture(getType(), mTextureID); in setSubImage()
348 nativegl::UseTexImage3D(getType()), pixel in setSubImage()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
H A DARMRegisterBankInfo.cpp235 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
270 LLT LargeTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping()
280 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
293 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
300 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
314 LLT ToTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
315 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping()
323 LLT ToTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
324 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping()
333 LLT ToTy = MRI.getType(M in getInstrMapping()
[all...]
H A DMVEGatherScatterLowering.cpp128 if (GEPPtr->getType()->isVectorTy()) { in checkGEP()
148 if (OffsType != Offsets->getType()) { in checkGEP()
150 Offsets->getType()->getScalarSizeInBits()) { in checkGEP()
166 Type *BCTy = BitCast->getType(); in lookThroughBitcast()
167 Type *BCSrcTy = BitCast->getOperand(0)->getType(); in lookThroughBitcast()
182 Type *Ty = I->getType(); in lowerGather()
192 assert(Ptr->getType()->isVectorTy() && "Unexpected pointer type"); in lowerGather()
219 Type *Ty = I->getType(); in tryCreateMaskedGatherBase()
226 {Ty, Ptr->getType()}, in tryCreateMaskedGatherBase()
231 {Ty, Ptr->getType(), Mas in tryCreateMaskedGatherBase()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp227 assert(Op.getType()->isPointerTy()); in isAddressExpression()
234 return Op.getType()->isPointerTy(); in isAddressExpression()
270 Type *DestTy = II->getType(); in rewriteIntrinsicOperands()
271 Type *SrcTy = NewV->getType(); in rewriteIntrinsicOperands()
310 assert(V->getType()->isPointerTy()); in appendsFlatAddressExpressionToPostorderStack()
323 V->getType()->getPointerAddressSpace() == FlatAddrSpace) { in appendsFlatAddressExpressionToPostorderStack()
358 if (!GEP->getType()->isVectorTy()) in collectFlatAddressExpressions()
379 if (Cmp->getOperand(0)->getType()->isPointerTy()) { in collectFlatAddressExpressions()
384 if (!ASC->getType()->isVectorTy()) in collectFlatAddressExpressions()
395 if (TopVal->getType() in collectFlatAddressExpressions()
[all...]
/third_party/skia/src/gpu/
H A DGrGeometryProcessor.cpp90 SkASSERT(kFloat2_GrSLType == gpArgs.fPositionVar.getType() || in emitCode()
91 kFloat3_GrSLType == gpArgs.fPositionVar.getType()); in emitCode()
93 gpArgs.fPositionVar.getType()); in emitCode()
94 if (kFloat2_GrSLType == gpArgs.fPositionVar.getType()) { in emitCode()
106 SkASSERT(localCoordsVar.getType() == kFloat2_GrSLType || in collectTransforms()
107 localCoordsVar.getType() == kFloat3_GrSLType || in collectTransforms()
108 localCoordsVar.getType() == kVoid_GrSLType); in collectTransforms()
109 SkASSERT(positionVar.getType() == kFloat2_GrSLType || in collectTransforms()
110 positionVar.getType() == kFloat3_GrSLType || in collectTransforms()
111 positionVar.getType() in collectTransforms()
[all...]
/third_party/glslang/glslang/MachineIndependent/
H A DlinkValidate.cpp378 TShaderInterface si = symbol->getType().getShaderInterface(); in getNameForIdMap()
382 return symbol->getType().getTypeName(); in getNameForIdMap()
398 const TQualifier& qualifier = symbol->getType().getQualifier(); in visitSymbol()
400 TShaderInterface si = symbol->getType().getShaderInterface(); in visitSymbol()
424 const TQualifier& qualifier = symbol->getType().getQualifier(); in visitSymbol()
426 TShaderInterface si = symbol->getType().getShaderInterface(); in visitSymbol()
461 const TQualifier& qualifier = symbol->getType().getQualifier(); in visitSymbol()
464 TShaderInterface si = symbol->getType().getShaderInterface(); in visitSymbol()
516 (stage == unitStage && symbol->getType().getShaderInterface() == unitSymbol->getType() in isSameInterface()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
H A DIceInstX8664.cpp395 Type Ty = getData()->getType(); in dump()
635 << InstX86Base::getWidthString(Dest->getType()) << "\t"; in emitTwoAddress()
776 Type Ty = SrcVar1->getType(); in emitIASGPRShiftDouble()
925 Str << " = movmsk." << this->getSrc(0)->getType() << " "; in dump()
934 Type SrcTy = this->getSrc(0)->getType(); in emit()
961 const Type DestTy = Dest->getType(); in emitIAS()
963 const Type SrcTy = Src->getType(); in emitIAS()
977 Type Ty = this->getSrc(0)->getType(); in emit()
993 Str << "\t" << this->Opcode << this->getWidthString(Src1->getType()) << "\t"; in emit()
1000 Type Ty = Src->getType(); in emitIAS()
[all...]
H A DIceInstX8632.cpp415 Type Ty = getData()->getType(); in dump()
648 << InstX86Base::getWidthString(Dest->getType()) << "\t"; in emitTwoAddress()
784 Type Ty = SrcVar1->getType(); in emitIASGPRShiftDouble()
933 Str << " = movmsk." << this->getSrc(0)->getType() << " "; in dump()
942 Type SrcTy = this->getSrc(0)->getType(); in emit()
969 const Type DestTy = Dest->getType(); in emitIAS()
971 const Type SrcTy = Src->getType(); in emitIAS()
985 Type Ty = this->getSrc(0)->getType(); in emit()
1001 Str << "\t" << this->Opcode << this->getWidthString(Src1->getType()) << "\t"; in emit()
1008 Type Ty = Src->getType(); in emitIAS()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp17 Type *StoredTy = StoredVal->getType(); in canCoerceMustAliasedValueToLoad()
38 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType()) != in canCoerceMustAliasedValueToLoad()
62 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadTypeHelper()
121 StoredVal, ConstantInt::get(StoredVal->getType(), ShiftAmt)); in coerceAvailableValueToLoadTypeHelper()
223 if (StoredVal->getType()->isStructTy() || in analyzeLoadFromClobberingStore()
224 StoredVal->getType()->isArrayTy()) in analyzeLoadFromClobberingStore()
228 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType()) != in analyzeLoadFromClobberingStore()
238 DL.getTypeSizeInBits(DepSI->getValueOperand()->getType()); in analyzeLoadFromClobberingStore()
249 if (DepLI->getType()->isStructTy() || DepLI->getType() in analyzeLoadFromClobberingLoad()
[all...]
/third_party/glslang/gtests/
H A DGlslMapIO.FromFile.cpp57 return symbol.getType()->getBasicType() == glslang::EbtBlock ? std::string(symbol.getType()->getTypeName().c_str()) : symbol.name; in interfaceName()
106 auto inQualifier = in.getType()->getQualifier(); in verifyIOMapping()
107 auto outQualifier = out->second->getType()->getQualifier(); in verifyIOMapping()
111 if (!in.getType()->isStruct()) { in verifyIOMapping()
114 if (outIt.second->getType()->isStruct()) { in verifyIOMapping()
115 unsigned int baseLoc = outIt.second->getType()->getQualifier().hasLocation() ? in verifyIOMapping()
116 outIt.second->getType()->getQualifier().layoutLocation : in verifyIOMapping()
118 for (size_t j = 0; j < outIt.second->getType()->getStruct()->size(); j++) { in verifyIOMapping()
119 baseLoc = (*outIt.second->getType() in verifyIOMapping()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
H A DRelocationResolver.cpp43 switch (R.getType()) { in resolveX86_64()
72 switch (R.getType()) { in resolveAArch64()
93 switch (R.getType()) { in resolveBPF()
116 switch (R.getType()) { in resolveMips64()
141 switch (R.getType()) { in resolvePPC64()
162 switch (R.getType()) { in resolveSystemZ()
185 switch (R.getType()) { in resolveSparc64()
207 switch (R.getType()) { in resolveAmdgpu()
228 switch (R.getType()) { in resolveX86()
245 if (R.getType() in resolvePPC32()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dtfsmalls.cpp168 if (!ftp || !(ftp->getType() == Formattable::kLong) || !(ftp->getLong() == 0)) { in test_Formattable()
169 it_errln("*** Formattable constructor or getType or getLong"); in test_Formattable()
195 if ((fta.getType() == Formattable::kDouble) && (fta.getDouble() == 3.0)) { in test_Formattable()
206 if ((fta.getType() == Formattable::kDate) && (fta.getDate() == 4.0)) { in test_Formattable()
231 t = (fta.getType() == Formattable::kString) in test_Formattable()
261 if ((ft_arr[0].getType() == Formattable::kDate) && (ft_arr[0].getDate() == 1.0) in test_Formattable()
262 && (ft_arr[1].getType() == Formattable::kDouble) && (ft_arr[1].getDouble() == 2.0) in test_Formattable()
263 && (ft_arr[2].getType() == Formattable::kLong) && (ft_arr[2].getLong() == (int32_t)3) in test_Formattable()
264 && (ft_arr[3].getType() == Formattable::kString) && (ft_arr[3].getString(temp) == ucs) in test_Formattable()
265 && (ft_arr[4].getType() in test_Formattable()
[all...]

Completed in 36 milliseconds

12345678910>>...75