Home
last modified time | relevance | path

Searched refs:IntegerType (Results 1 – 25 of 142) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DType.cpp58 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy()
125 return TypeSize::Fixed(cast<IntegerType>(this)->getBitWidth()); in getPrimitiveSizeInBits()
177 IntegerType *Type::getInt1Ty(LLVMContext &C) { return &C.pImpl->Int1Ty; } in getInt1Ty()
178 IntegerType *Type::getInt8Ty(LLVMContext &C) { return &C.pImpl->Int8Ty; } in getInt8Ty()
179 IntegerType *Type::getInt16Ty(LLVMContext &C) { return &C.pImpl->Int16Ty; } in getInt16Ty()
180 IntegerType *Type::getInt32Ty(LLVMContext &C) { return &C.pImpl->Int32Ty; } in getInt32Ty()
181 IntegerType *Type::getInt64Ty(LLVMContext &C) { return &C.pImpl->Int64Ty; } in getInt64Ty()
182 IntegerType *Type::getInt128Ty(LLVMContext &C) { return &C.pImpl->Int128Ty; } in getInt128Ty()
184 IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { in getIntNTy()
185 return IntegerType::get(C, N); in getIntNTy()
[all …]
DConstantFold.cpp60 Type *Ty = IntegerType::get(CV->getContext(), 32); in BitCastConstantVector()
94 IntegerType *FakeIntPtrTy = Type::getInt64Ty(DstTy->getContext()); in foldConstantCastPair()
215 (cast<IntegerType>(C->getType())->getBitWidth() & 7) == 0 && in ExtractConstantBytes()
217 unsigned CSize = cast<IntegerType>(C->getType())->getBitWidth()/8; in ExtractConstantBytes()
280 IntegerType::get(CE->getContext(), ByteSize * 8)); in ExtractConstantBytes()
303 IntegerType::get(CE->getContext(), ByteSize * 8)); in ExtractConstantBytes()
315 cast<IntegerType>(CE->getOperand(0)->getType())->getBitWidth(); in ExtractConstantBytes()
319 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
339 return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(), in ExtractConstantBytes()
387 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf()
[all …]
DFunction.cpp652 Result += "i" + utostr(cast<IntegerType>(Ty)->getBitWidth()); in getMangledTypeStr()
984 return IntegerType::get(Context, D.Integer_Width); in DecodeFixedType()
1003 return IntegerType::get(Context, 2 * cast<IntegerType>(Ty)->getBitWidth()); in DecodeFixedType()
1010 IntegerType *ITy = cast<IntegerType>(Ty); in DecodeFixedType()
1012 return IntegerType::get(Context, ITy->getBitWidth() / 2); in DecodeFixedType()
1222 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType()
1223 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in matchIntrinsicType()
1237 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType()
1238 NewTy = IntegerType::get(ITy->getContext(), ITy->getBitWidth() / 2); in matchIntrinsicType()
DDataLayout.cpp769 IntegerType *DataLayout::getIntPtrType(LLVMContext &C, in getIntPtrType()
771 return IntegerType::get(C, getPointerSizeInBits(AddressSpace)); in getIntPtrType()
778 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType()
800 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIndexType()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceTypeConverter.cpp24 llvm::Type *Type_i1 = llvm::IntegerType::get(Context, 1); in TypeConverter()
25 llvm::Type *Type_i8 = llvm::IntegerType::get(Context, 8); in TypeConverter()
26 llvm::Type *Type_i16 = llvm::IntegerType::get(Context, 16); in TypeConverter()
27 llvm::Type *Type_i32 = llvm::IntegerType::get(Context, 32); in TypeConverter()
33 addLLVMType(IceType_i64, llvm::IntegerType::get(Context, 64)); in TypeConverter()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTypePromotion.cpp108 IntegerType *OrigTy = nullptr;
114 IntegerType *ExtTy = nullptr;
129 IRPromoter(LLVMContext &C, IntegerType *Ty, unsigned Width, in IRPromoter()
135 ExtTy = IntegerType::get(Ctx, PromotedWidth); in IRPromoter()
229 if (!isa<IntegerType>(V->getType())) in isSource()
389 if (!isa<IntegerType>(V->getType()) || isSink(V)) in shouldPromote()
533 if ((Op->getType() == ExtTy) || !isa<IntegerType>(Op->getType())) in PromoteTree()
557 if (!isa<Instruction>(V) || !isa<IntegerType>(V->getType())) in TruncateSinks()
660 IntegerType *SrcTy = cast<IntegerType>(Trunc->getOperand(0)->getType()); in ConvertTruncs()
661 IntegerType *DestTy = cast<IntegerType>(TruncTysMap[Trunc][0]); in ConvertTruncs()
[all …]
DIndirectBrExpandPass.cpp148 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runOnFunction()
172 IntegerType *CommonITy = nullptr; in runOnFunction()
175 cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType())); in runOnFunction()
DExpandMemCmp.cpp338 IntegerType *const MaxLoadType = in getCompareLoadPairs()
340 : IntegerType::get(CI->getContext(), MaxLoadSize * 8); in getCompareLoadPairs()
344 IntegerType *LoadSizeType = in getCompareLoadPairs()
345 IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8); in getCompareLoadPairs()
448 IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8); in emitLoadCompareBlock()
449 Type *MaxLoadType = IntegerType::get(CI->getContext(), MaxLoadSize * 8); in emitLoadCompareBlock()
531 Type *MaxLoadType = IntegerType::get(CI->getContext(), MaxLoadSize * 8); in setupResultBlockPHINodes()
570 Type *LoadSizeType = IntegerType::get(CI->getContext(), Size * 8); in getMemCmpOneBlock()
DValueTypes.cpp30 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
107 if (IntegerType *ITy = dyn_cast<IntegerType>(LLVMTy)) in getExtendedSizeInBits()
151 case MVT::i128: return IntegerType::get(Context, 128); in getTypeForEVT()
332 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth()); in getVT()
358 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth()); in getEVT()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DType.h29 class IntegerType; variable
388 static IntegerType *getIntNTy(LLVMContext &C, unsigned N);
389 static IntegerType *getInt1Ty(LLVMContext &C);
390 static IntegerType *getInt8Ty(LLVMContext &C);
391 static IntegerType *getInt16Ty(LLVMContext &C);
392 static IntegerType *getInt32Ty(LLVMContext &C);
393 static IntegerType *getInt64Ty(LLVMContext &C);
394 static IntegerType *getInt128Ty(LLVMContext &C);
DDerivedTypes.h39 class IntegerType : public Type {
43 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() function
62 static IntegerType *get(LLVMContext &C, unsigned NumBits);
97 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth()
385 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger()
393 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType()
403 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DType.h32 class IntegerType; variable
419 static IntegerType *getIntNTy(LLVMContext &C, unsigned N);
420 static IntegerType *getInt1Ty(LLVMContext &C);
421 static IntegerType *getInt8Ty(LLVMContext &C);
422 static IntegerType *getInt16Ty(LLVMContext &C);
423 static IntegerType *getInt32Ty(LLVMContext &C);
424 static IntegerType *getInt64Ty(LLVMContext &C);
425 static IntegerType *getInt128Ty(LLVMContext &C);
DDerivedTypes.h40 class IntegerType : public Type {
44 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() function
63 static IntegerType *get(LLVMContext &C, unsigned NumBits);
66 IntegerType *getExtendedType() const { in getExtendedType()
103 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth()
471 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger()
479 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType()
503 EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType()
622 return cast<IntegerType>(this)->getExtendedType(); in getExtendedType()
DConstants.h45 class IntegerType; variable
88 ConstantInt(IntegerType *Ty, const APInt& V);
110 static ConstantInt *get(IntegerType *Ty, uint64_t V,
118 static ConstantInt *getSigned(IntegerType *Ty, int64_t V);
127 static ConstantInt *get(IntegerType *Ty, StringRef Str,
171 inline IntegerType *getType() const { in getType()
172 return cast<IntegerType>(Value::getType()); in getType()
/third_party/protobuf/ruby/tests/
Dtype_errors.rb12 IntegerType = Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4') ? Fixnum : Integer constant in TestTypeErrors
16 … "Invalid argument for string field 'optional_string' (given #{IntegerType.name})." do
20 "Invalid argument for string field 'oneof_string' (given #{IntegerType.name})." do
157 "Invalid type #{IntegerType.name} to assign to submessage field 'optional_msg'." do
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp390 if (!isa<IntegerType>(I->getType())) in allocateCandidatesAndFindBasisForAdd()
414 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
448 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul()
458 if (!isa<IntegerType>(I->getType())) in allocateCandidatesAndFindBasisForMul()
477 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); in allocateCandidatesAndFindBasisForGEP()
489 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
604 IntegerType *DeltaType = in emitBump()
605 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
DInductiveRangeCheckElimination.cpp378 unsigned BitWidth = cast<IntegerType>(IndexAddRec->getType())->getBitWidth(); in extractRangeChecksFromCond()
678 unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth(); in isSafeDecreasingBound()
726 unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth(); in isSafeIncreasingBound()
784 if (!ICI || !isa<IntegerType>(ICI->getOperand(0)->getType())) { in parseLoopStructure()
798 IntegerType *IndVarTy = cast<IntegerType>(LeftValue->getType()); in parseLoopStructure()
819 IntegerType *Ty = cast<IntegerType>(AR->getType()); in parseLoopStructure()
820 IntegerType *WideTy = in parseLoopStructure()
821 IntegerType::get(Ty->getContext(), Ty->getBitWidth() * 2); in parseLoopStructure()
1049 IntegerType *Ty = cast<IntegerType>(LatchTakenCount->getType()); in calculateSubRanges()
1051 auto *RTy = cast<IntegerType>(Range.getType()); in calculateSubRanges()
[all …]
DSROA.cpp1133 IntegerType *ITy = nullptr; in findCommonType()
1151 if (IntegerType *UserITy = dyn_cast_or_null<IntegerType>(UserTy)) { in findCommonType()
1713 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()
1714 assert(cast<IntegerType>(OldTy)->getBitWidth() != in canConvertValue()
1715 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue()
1765 assert(!(isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) && in convertValue()
2030 if (IntegerType *ITy = dyn_cast<IntegerType>(LI->getType())) { in isIntegerWideningViableForSlice()
2055 if (IntegerType *ITy = dyn_cast<IntegerType>(ValueTy)) { in isIntegerWideningViableForSlice()
2089 if (SizeInBits > IntegerType::MAX_INT_BITS) in isIntegerWideningViable()
2128 IntegerType *Ty, uint64_t Offset, in extractInteger()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMParallelDSP.cpp229 LoadInst* CreateWideLoad(MemInstList &Loads, IntegerType *LoadTy);
700 ConstantInt::get(IntegerType::get(M->getContext(), 64), 0) : in InsertParallelMACs()
701 ConstantInt::get(IntegerType::get(M->getContext(), 32), 0); in InsertParallelMACs()
715 IntegerType *Ty = IntegerType::get(M->getContext(), 32); in InsertParallelMACs()
734 IntegerType *LoadTy) { in CreateWideLoad()
789 IntegerType *OffsetTy = cast<IntegerType>(Offset->getType()); in CreateWideLoad()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DBypassSlowDivision.cpp80 IntegerType *BypassType = nullptr;
127 IntegerType *SlowType = dyn_cast<IntegerType>(SlowDivOrRem->getType()); in FastDivInsertionTask()
137 IntegerType *BT = IntegerType::get(I->getContext(), BI->second); in FastDivInsertionTask()
DVNCoercion.cpp111 StoredValTy = IntegerType::get(StoredValTy->getContext(), StoredValSize); in coerceAvailableValueToLoadTypeHelper()
125 Type *NewIntTy = IntegerType::get(StoredValTy->getContext(), LoadedValSize); in coerceAvailableValueToLoadTypeHelper()
365 SrcVal = Helper.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize * 8)); in getStoreValueForLoadHelper()
379 IntegerType::get(Ctx, LoadSize * 8)); in getStoreValueForLoadHelper()
427 Type *DestTy = IntegerType::get(LoadTy->getContext(), NewLoadSize * 8); in getLoadValueForLoad()
477 Helper.CreateZExtOrBitCast(Val, IntegerType::get(Ctx, LoadSize * 8)); in getMemInstValueForLoadHelper()
DSanitizerStats.cpp46 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create()
78 IntegerType *Int32Ty = Type::getInt32Ty(M->getContext()); in finish()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp570 IntegerType *getPmpyType() const { in getPmpyType()
572 return IntegerType::get(Ctx, 32); in getPmpyType()
575 bool isPromotableTo(Value *V, IntegerType *Ty);
576 void promoteTo(Instruction *In, IntegerType *DestTy, BasicBlock *LoopB);
965 IntegerType *DestTy) { in isPromotableTo()
966 IntegerType *T = dyn_cast<IntegerType>(Val->getType()); in isPromotableTo()
1003 IntegerType *DestTy, BasicBlock *LoopB) { in promoteTo()
1020 IntegerType *Ty = cast<IntegerType>(InV->getType()); in promoteTo()
1038 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo()
1063 IntegerType *DestTy = getPmpyType(); in promoteTypes()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DPtrUseVisitor.h225 IntegerType *IntIdxTy = cast<IntegerType>(DL.getIndexType(I.getType())); in visitPtr()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp77 switch (cast<IntegerType>(Ty)->getBitWidth()) { in getTypeID()
127 switch (cast<IntegerType>(Ty)->getBitWidth()) { in ffiTypeFor()
147 switch (cast<IntegerType>(Ty)->getBitWidth()) { in ffiValueFor()
238 switch (cast<IntegerType>(RetTy)->getBitWidth()) { in ffiInvoke()

123456