Home
last modified time | relevance | path

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

12345

/trueos/contrib/llvm/lib/IR/
HDType.cpp59 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy()
126 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); in getPrimitiveSizeInBits()
179 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth()
238 IntegerType *Type::getInt1Ty(LLVMContext &C) { return &C.pImpl->Int1Ty; } in getInt1Ty()
239 IntegerType *Type::getInt8Ty(LLVMContext &C) { return &C.pImpl->Int8Ty; } in getInt8Ty()
240 IntegerType *Type::getInt16Ty(LLVMContext &C) { return &C.pImpl->Int16Ty; } in getInt16Ty()
241 IntegerType *Type::getInt32Ty(LLVMContext &C) { return &C.pImpl->Int32Ty; } in getInt32Ty()
242 IntegerType *Type::getInt64Ty(LLVMContext &C) { return &C.pImpl->Int64Ty; } in getInt64Ty()
244 IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { in getIntNTy()
245 return IntegerType::get(C, N); in getIntNTy()
[all …]
HDValueTypes.cpp30 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
98 if (IntegerType *ITy = dyn_cast<IntegerType>(LLVMTy)) in getExtendedSizeInBits()
191 case MVT::i128: return IntegerType::get(Context, 128); in getTypeForEVT()
255 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth()); in getVT()
280 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth()); in getEVT()
HDConstantFold.cpp59 Type *Ty = IntegerType::get(CV->getContext(), 32); in BitCastConstantVector()
93 IntegerType *FakeIntPtrTy = Type::getInt64Ty(DstTy->getContext()); in foldConstantCastPair()
200 (cast<IntegerType>(C->getType())->getBitWidth() & 7) == 0 && in ExtractConstantBytes()
202 unsigned CSize = cast<IntegerType>(C->getType())->getBitWidth()/8; in ExtractConstantBytes()
264 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
286 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
298 cast<IntegerType>(CE->getOperand(0)->getType())->getBitWidth(); in ExtractConstantBytes()
302 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
322 return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(), in ExtractConstantBytes()
372 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf()
[all …]
HDDataLayout.cpp610 IntegerType *DataLayout::getIntPtrType(LLVMContext &C, in getIntPtrType()
612 return IntegerType::get(C, getPointerSizeInBits(AddressSpace)); in getIntPtrType()
619 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType()
/trueos/contrib/llvm/include/llvm/IR/
HDType.h28 class IntegerType; variable
399 static IntegerType *getIntNTy(LLVMContext &C, unsigned N);
400 static IntegerType *getInt1Ty(LLVMContext &C);
401 static IntegerType *getInt8Ty(LLVMContext &C);
402 static IntegerType *getInt16Ty(LLVMContext &C);
403 static IntegerType *getInt32Ty(LLVMContext &C);
404 static IntegerType *getInt64Ty(LLVMContext &C);
HDMDBuilder.h89 Type *Ty = IntegerType::get(Context, Lo.getBitWidth()); in createRange()
150 Type *Int64 = IntegerType::get(Context, 64); in createTBAAStructNode()
164 Type *Int64 = IntegerType::get(Context, 64); in createTBAAStructTypeNode()
178 Type *Int64 = IntegerType::get(Context, 64);
189 Type *Int64 = IntegerType::get(Context, 64); in createTBAAStructTagNode()
HDDerivedTypes.h37 class IntegerType : public Type {
41 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() function
58 static IntegerType *get(LLVMContext &C, unsigned NumBits);
377 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger()
387 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType()
399 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType()
HDConstants.h34 class IntegerType; variable
55 ConstantInt(IntegerType *Ty, const APInt& V);
78 static ConstantInt *get(IntegerType *Ty, uint64_t V,
86 static ConstantInt *getSigned(IntegerType *Ty, int64_t V);
95 static ConstantInt *get(IntegerType *Ty, StringRef Str,
139 inline IntegerType *getType() const { in getType()
140 return cast<IntegerType>(Value::getType()); in getType()
HDTypeBuilder.h154 static IntegerType *get(LLVMContext &Context) { \
155 return IntegerType::get(Context, sizeof(T) * CHAR_BIT); \
183 static IntegerType *get(LLVMContext &C) { in get()
184 return IntegerType::get(C, num_bits); in get()
HDDataLayout.h34 class IntegerType; variable
361 IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace = 0) const;
/trueos/contrib/llvm/lib/Transforms/Utils/
HDBypassSlowDivision.cpp79 IntegerType *BypassType, in insertFastDiv()
187 IntegerType *BypassType, in reuseOrInsertFastDiv()
246 IntegerType *T = cast<IntegerType>(J->getType()); in bypassSlowDivision()
255 IntegerType *BT = IntegerType::get(J->getContext(), BI->second); in bypassSlowDivision()
/trueos/contrib/llvm/lib/Transforms/Scalar/
HDSROA.cpp959 if (IntegerType *ITy = dyn_cast<IntegerType>(UserTy)) { in INITIALIZE_PASS_DEPENDENCY()
1455 if (IntegerType *OldITy = dyn_cast<IntegerType>(OldTy)) in canConvertValue()
1456 if (IntegerType *NewITy = dyn_cast<IntegerType>(NewTy)) in canConvertValue()
1493 if (IntegerType *OldITy = dyn_cast<IntegerType>(OldTy)) in convertValue()
1494 if (IntegerType *NewITy = dyn_cast<IntegerType>(NewTy)) in convertValue()
1673 if (IntegerType *ITy = dyn_cast<IntegerType>(LI->getType())) { in isIntegerWideningViableForSlice()
1688 if (IntegerType *ITy = dyn_cast<IntegerType>(ValueTy)) { in isIntegerWideningViableForSlice()
1727 if (SizeInBits > IntegerType::MAX_INT_BITS) in isIntegerWideningViable()
1767 IntegerType *Ty, uint64_t Offset, in extractInteger()
1770 IntegerType *IntTy = cast<IntegerType>(V->getType()); in extractInteger()
[all …]
HDScalarReplAggregates.cpp377 NewTy = IntegerType::get(AI->getContext(), BitWidth); in TryConvert()
832 IntegerType *NTy = cast<IntegerType>(FromVal->getType()); in ConvertScalar_ExtractValue()
861 Builder.CreateTrunc(FromVal, IntegerType::get(FromVal->getContext(), in ConvertScalar_ExtractValue()
865 Builder.CreateZExt(FromVal, IntegerType::get(FromVal->getContext(), in ConvertScalar_ExtractValue()
964 SV = Builder.CreateBitCast(SV, IntegerType::get(SV->getContext(),SrcWidth)); in ConvertScalar_InsertValue()
2344 IntegerType::get(SI->getContext(), AllocaSizeBits)); in RewriteStoreUserOfWholeAlloca()
2376 IntegerType::get(SI->getContext(), FieldSizeBits)); in RewriteStoreUserOfWholeAlloca()
2417 IntegerType::get(SI->getContext(), in RewriteStoreUserOfWholeAlloca()
2468 Constant::getNullValue(IntegerType::get(LI->getContext(), AllocaSizeBits)); in RewriteLoadUserOfWholeAlloca()
2481 IntegerType *FieldIntTy = IntegerType::get(LI->getContext(), in RewriteLoadUserOfWholeAlloca()
/trueos/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineCalls.cpp30 if (IntegerType* ITy = dyn_cast<IntegerType>(Ty)) { in getPromotedType()
91 IntegerType* IntType = IntegerType::get(MI->getContext(), Size<<3); in SimplifyMemTransfer()
173 Type *ITy = IntegerType::get(MI->getContext(), Len*8); // n=1 -> i8. in SimplifyMemSet()
317 IntegerType *IT = dyn_cast<IntegerType>(II->getArgOperand(0)->getType()); in visitCallInst()
335 IntegerType *IT = dyn_cast<IntegerType>(II->getArgOperand(0)->getType()); in visitCallInst()
352 IntegerType *IT = cast<IntegerType>(II->getArgOperand(0)->getType()); in visitCallInst()
446 unsigned BitWidth = cast<IntegerType>(LHS->getType())->getBitWidth(); in visitCallInst()
/trueos/contrib/llvm/include/llvm/Analysis/
HDPtrUseVisitor.h208 IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType())); in visitPtr()
/trueos/contrib/llvm/tools/llvm-stress/
HDllvm-stress.cpp102 ArgsTy.push_back(PointerType::get(IntegerType::getInt8Ty(Context), 0)); in GenEmptyFunction()
103 ArgsTy.push_back(PointerType::get(IntegerType::getInt32Ty(Context), 0)); in GenEmptyFunction()
104 ArgsTy.push_back(PointerType::get(IntegerType::getInt64Ty(Context), 0)); in GenEmptyFunction()
105 ArgsTy.push_back(IntegerType::getInt32Ty(Context)); in GenEmptyFunction()
106 ArgsTy.push_back(IntegerType::getInt64Ty(Context)); in GenEmptyFunction()
107 ArgsTy.push_back(IntegerType::getInt8Ty(Context)); in GenEmptyFunction()
664 if (it->getType() == IntegerType::getInt1Ty(F->getContext())) in IntroduceControlFlow()
/trueos/contrib/llvm/lib/ExecutionEngine/Interpreter/
HDExternalFunctions.cpp67 switch (cast<IntegerType>(Ty)->getBitWidth()) { in getTypeID()
117 switch (cast<IntegerType>(Ty)->getBitWidth()) { in ffiTypeFor()
137 switch (cast<IntegerType>(Ty)->getBitWidth()) { in ffiValueFor()
228 switch (cast<IntegerType>(RetTy)->getBitWidth()) { in ffiInvoke()
HDExecution.cpp1014 cast<IntegerType>(I.getOperand()->getType())->getBitWidth(); in executeGEPOperation()
1222 unsigned DBitWidth = cast<IntegerType>(DstVecTy)->getBitWidth(); in executeTruncInst()
1229 IntegerType *DITy = cast<IntegerType>(DstTy); in executeTruncInst()
1242 unsigned DBitWidth = cast<IntegerType>(DstVecTy)->getBitWidth(); in executeSExtInst()
1249 const IntegerType *DITy = cast<IntegerType>(DstTy); in executeSExtInst()
1262 unsigned DBitWidth = cast<IntegerType>(DstVecTy)->getBitWidth(); in executeZExtInst()
1270 const IntegerType *DITy = cast<IntegerType>(DstTy); in executeZExtInst()
1330 uint32_t DBitWidth = cast<IntegerType>(DstVecTy)->getBitWidth(); in executeFPToUIInst()
1347 uint32_t DBitWidth = cast<IntegerType>(DstTy)->getBitWidth(); in executeFPToUIInst()
1368 uint32_t DBitWidth = cast<IntegerType>(DstVecTy)->getBitWidth(); in executeFPToSIInst()
[all …]
/trueos/contrib/llvm/tools/lldb/include/lldb/Expression/
HDIRForTarget.h33 class IntegerType; variable
654 …llvm::IntegerType *m_intptr_ty; ///< The type of an integer la…
/trueos/contrib/llvm/lib/Target/
HDTargetLoweringObjectFile.cpp178 if (IntegerType *ITy = in getKindForGlobal()
179 dyn_cast<IntegerType>(ATy->getElementType())) { in getKindForGlobal()
/trueos/contrib/llvm/tools/clang/lib/CodeGen/
HDCGAtomic.cpp608 llvm::IntegerType::get(getLLVMContext(), Size * 8)->getPointerTo(); in EmitAtomicExpr()
720 llvm::IntegerType *ty = in emitCastToAtomicIntPointer()
721 llvm::IntegerType::get(CGF.getLLVMContext(), AtomicSizeInBits); in emitCastToAtomicIntPointer()
797 if (isa<llvm::IntegerType>(resultTy)) { in EmitAtomicLoad()
928 if (isa<llvm::IntegerType>(value->getType())) { in EmitAtomicStore()
931 llvm::IntegerType *inputIntTy = in EmitAtomicStore()
932 llvm::IntegerType::get(getLLVMContext(), atomics.getValueSizeInBits()); in EmitAtomicStore()
HDCodeGenModule.h113 llvm::IntegerType *Int8Ty, *Int16Ty, *Int32Ty, *Int64Ty;
118 llvm::IntegerType *IntTy;
122 llvm::IntegerType *IntPtrTy;
123 llvm::IntegerType *SizeTy;
124 llvm::IntegerType *PtrDiffTy;
HDCGOpenCLRuntime.cpp59 return llvm::IntegerType::get(CGM.getLLVMContext(),32); in convertOpenCLSpecificType()
HDCGExprScalar.cpp548 if (isa<llvm::IntegerType>(Src->getType())) in EmitConversionToBool()
566 if (llvm::IntegerType *IntTy = dyn_cast<llvm::IntegerType>(SrcTy)) { in EmitFloatConversionCheck()
595 if (isa<llvm::IntegerType>(DstTy)) { in EmitFloatConversionCheck()
743 assert(isa<llvm::IntegerType>(DstTy) && "not ptr->int?"); in EmitScalarConversion()
778 if (isa<llvm::IntegerType>(SrcTy)) { in EmitScalarConversion()
780 if (isa<llvm::IntegerType>(DstTy)) in EmitScalarConversion()
786 } else if (isa<llvm::IntegerType>(DstTy)) { in EmitScalarConversion()
1008 isa<llvm::IntegerType>(SrcEltTy)) && "Unknown boolean conversion"); in VisitConvertVectorExpr()
1021 if (isa<llvm::IntegerType>(SrcEltTy)) { in VisitConvertVectorExpr()
1023 if (isa<llvm::IntegerType>(DstEltTy)) in VisitConvertVectorExpr()
[all …]
HDTargetInfo.cpp701 return ABIArgInfo::getDirect(llvm::IntegerType::get(getVMContext(), in classifyReturnType()
742 return ABIArgInfo::getDirect(llvm::IntegerType::get(getVMContext(),Size)); in classifyReturnType()
910 llvm::IntegerType *Int32 = llvm::Type::getInt32Ty(LLVMContext); in classifyArgumentType()
918 llvm::IntegerType *PaddingType = NeedsPadding ? Int32 : 0; in classifyArgumentType()
938 return ABIArgInfo::getDirect(llvm::IntegerType::get(getVMContext(), in classifyArgumentType()
943 return ABIArgInfo::getDirect(llvm::IntegerType::get(getVMContext(), 64)); in classifyArgumentType()
1813 return ABIArgInfo::getDirect(llvm::IntegerType::get(getVMContext(), in getIndirectResult()
2022 cast<llvm::IntegerType>(IRType)->getBitWidth(); in GetINTEGERTypeAtOffset()
2059 return llvm::IntegerType::get(getVMContext(), in GetINTEGERTypeAtOffset()
2144 if (Hi == NoClass && isa<llvm::IntegerType>(ResType)) { in classifyReturnType()
[all …]

12345