Home
last modified time | relevance | path

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

12345678

/netbsd/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DBitfields.h159 using IntegerType = typename Bitfield::IntegerType;
160 using C = Compressor<IntegerType, Bitfield::Bits>;
170 static void update(StorageType &Packed, IntegerType UserValue) {
178 static IntegerType extract(StorageType Packed) {
225 using IntegerType =
237 static constexpr size_t TypeBits = sizeof(IntegerType) * CHAR_BIT;
242 std::is_unsigned<IntegerType>::value,
244 static_assert(std::is_integral<IntegerType>::value &&
245 std::numeric_limits<IntegerType>::is_integer,
248 static constexpr IntegerType UserMaxValue =
[all …]
/netbsd/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenTypeCache.h22 class IntegerType; variable
37 llvm::IntegerType *Int8Ty, *Int16Ty, *Int32Ty, *Int64Ty;
42 llvm::IntegerType *IntTy;
45 llvm::IntegerType *CharTy;
49 llvm::IntegerType *IntPtrTy;
50 llvm::IntegerType *SizeTy;
51 llvm::IntegerType *PtrDiffTy;
H A DCGOpenCLRuntime.cpp101 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemSize()
111 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemAlign()
120 return llvm::IntegerType::getInt8PtrTy( in getGenericVoidPointerType()
H A DPatternInit.cpp38 cast<llvm::IntegerType>(Ty->getScalarType())->getBitWidth(); in initializationPatternFor()
50 llvm::Type *IntTy = llvm::IntegerType::get(CGM.getLLVMContext(), PtrWidth); in initializationPatternFor()
/netbsd/external/apache2/llvm/dist/llvm/examples/BrainF/
H A DBrainF.cpp76 module->getOrInsertFunction("getchar", IntegerType::getInt32Ty(C)); in header()
80 "putchar", IntegerType::getInt32Ty(C), IntegerType::getInt32Ty(C)); in header()
93 Type* IntPtrTy = IntegerType::getInt32Ty(C); in header()
94 Type* Int8Ty = IntegerType::getInt8Ty(C); in header()
155 "puts", IntegerType::getInt32Ty(C), in header()
156 PointerType::getUnqual(IntegerType::getInt8Ty(C))); in header()
163 Constant *zero_32 = Constant::getNullValue(IntegerType::getInt32Ty(C)); in header()
216 CreateTrunc(tape_0, IntegerType::getInt8Ty(C), tapereg); in readloop()
231 CreateSExt(tape_0, IntegerType::getInt32Ty(C), tapereg); in readloop()
444 LoadInst *tape_0 = new LoadInst(IntegerType::getInt8Ty(C), head_0, in readloop()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/IR/
H A DType.cpp201 IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { in getIntNTy()
202 return IntegerType::get(C, N); in getIntNTy()
269 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { in get()
275 case 1: return cast<IntegerType>(Type::getInt1Ty(C)); in get()
276 case 8: return cast<IntegerType>(Type::getInt8Ty(C)); in get()
277 case 16: return cast<IntegerType>(Type::getInt16Ty(C)); in get()
278 case 32: return cast<IntegerType>(Type::getInt32Ty(C)); in get()
279 case 64: return cast<IntegerType>(Type::getInt64Ty(C)); in get()
285 IntegerType *&Entry = C.pImpl->IntegerTypes[NumBits]; in get()
288 Entry = new (C.pImpl->Alloc) IntegerType(C, NumBits); in get()
[all …]
H A DConstantFold.cpp70 Type *Ty = IntegerType::get(CV->getContext(), 32); in BitCastConstantVector()
282 IntegerType::get(CE->getContext(), ByteSize * 8)); in ExtractConstantBytes()
305 IntegerType::get(CE->getContext(), ByteSize * 8)); in ExtractConstantBytes()
612 Type *Ty = IntegerType::get(V->getContext(), 32); in ConstantFoldCastInstruction()
779 Type *Ty = IntegerType::get(CondV->getContext(), 32); in ConstantFoldSelectInstruction()
977 Type *Ty = IntegerType::get(V1->getContext(), 32); in ConstantFoldShuffleVectorInstruction()
1001 Type *Ty = IntegerType::get(V2->getContext(), 32); in ConstantFoldShuffleVectorInstruction()
1006 Type *Ty = IntegerType::get(V1->getContext(), 32); in ConstantFoldShuffleVectorInstruction()
1089 Type *Ty = IntegerType::get(VTy->getContext(), 32); in ConstantFoldUnaryInstruction()
1477 Type *Ty = IntegerType::get(FVTy->getContext(), 32); in ConstantFoldBinaryInstruction()
[all …]
H A DDataLayout.cpp838 IntegerType *DataLayout::getIntPtrType(LLVMContext &C, in getIntPtrType()
840 return IntegerType::get(C, getPointerSizeInBits(AddressSpace)); in getIntPtrType()
847 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType()
869 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIndexType()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DTypePromotion.cpp109 IntegerType *OrigTy = nullptr;
115 IntegerType *ExtTy = nullptr;
130 IRPromoter(LLVMContext &C, IntegerType *Ty, unsigned Width, in IRPromoter()
136 ExtTy = IntegerType::get(Ctx, PromotedWidth); in IRPromoter()
231 if (!isa<IntegerType>(V->getType())) in isSource()
391 if (!isa<IntegerType>(V->getType()) || isSink(V)) in shouldPromote()
662 IntegerType *SrcTy = cast<IntegerType>(Trunc->getOperand(0)->getType()); in ConvertTruncs()
663 IntegerType *DestTy = cast<IntegerType>(TruncTysMap[Trunc][0]); in ConvertTruncs()
735 if (!isa<IntegerType>(Ty) || in isSupportedType()
736 cast<IntegerType>(Ty)->getBitWidth() == 1 || in isSupportedType()
[all …]
H A DIndirectBrExpandPass.cpp161 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runOnFunction()
197 IntegerType *CommonITy = nullptr; in runOnFunction()
200 cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType())); in runOnFunction()
H A DExpandMemCmp.cpp388 IntegerType *const MaxLoadType = in getCompareLoadPairs()
390 : IntegerType::get(CI->getContext(), MaxLoadSize * 8); in getCompareLoadPairs()
394 IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8), in getCompareLoadPairs()
480 IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8); in emitLoadCompareBlock()
481 Type *MaxLoadType = IntegerType::get(CI->getContext(), MaxLoadSize * 8); in emitLoadCompareBlock()
554 Type *MaxLoadType = IntegerType::get(CI->getContext(), MaxLoadSize * 8); in setupResultBlockPHINodes()
593 Type *LoadSizeType = IntegerType::get(CI->getContext(), Size * 8); in getMemCmpOneBlock()
H A DValueTypes.cpp39 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
144 if (IntegerType *ITy = dyn_cast<IntegerType>(LLVMTy)) in getExtendedSizeInBits()
192 case MVT::i128: return IntegerType::get(Context, 128); in getTypeForEVT()
509 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth()); in getVT()
538 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth()); in getEVT()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DType.h32 class IntegerType; variable
423 static IntegerType *getIntNTy(LLVMContext &C, unsigned N);
424 static IntegerType *getInt1Ty(LLVMContext &C);
425 static IntegerType *getInt8Ty(LLVMContext &C);
426 static IntegerType *getInt16Ty(LLVMContext &C);
427 static IntegerType *getInt32Ty(LLVMContext &C);
428 static IntegerType *getInt64Ty(LLVMContext &C);
429 static IntegerType *getInt128Ty(LLVMContext &C);
H A 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()
97 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth()
445 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger()
453 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType()
477 EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType()
700 return cast<IntegerType>(this)->getExtendedType(); in getExtendedType()
/netbsd/external/apache2/llvm/dist/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h197 void addInt(llvm::IntegerType *intTy, uint64_t value,
225 void addRelativeOffset(llvm::IntegerType *type, llvm::Constant *target) { in addRelativeOffset()
231 void addRelativeOffsetToPosition(llvm::IntegerType *type, in addRelativeOffsetToPosition()
240 void addTaggedRelativeOffset(llvm::IntegerType *type, in addTaggedRelativeOffset()
290 llvm::IntegerType *type, uint64_t value,
334 llvm::Constant *getRelativeOffset(llvm::IntegerType *offsetType,
337 llvm::Constant *getRelativeOffsetToPosition(llvm::IntegerType *offsetType,
H A DSwiftCallingConv.h23 class IntegerType; variable
135 bool isLegalIntegerType(CodeGenModule &CGM, llvm::IntegerType *type);
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp401 if (!isa<IntegerType>(I->getType())) in allocateCandidatesAndFindBasisForAdd()
425 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
459 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul()
469 if (!isa<IntegerType>(I->getType())) in allocateCandidatesAndFindBasisForMul()
488 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); in allocateCandidatesAndFindBasisForGEP()
500 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
615 IntegerType *DeltaType = in emitBump()
616 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
H A DSROA.cpp1154 if (IntegerType *UserITy = dyn_cast_or_null<IntegerType>(UserTy)) { in findCommonType()
1710 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()
1770 assert(!(isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) && in convertValue()
2041 if (IntegerType *ITy = dyn_cast<IntegerType>(LI->getType())) { in isIntegerWideningViableForSlice()
2066 if (IntegerType *ITy = dyn_cast<IntegerType>(ValueTy)) { in isIntegerWideningViableForSlice()
2141 IntegerType *IntTy = cast<IntegerType>(V->getType()); in extractInteger()
2164 IntegerType *IntTy = cast<IntegerType>(Old->getType()); in insertInteger()
2165 IntegerType *Ty = cast<IntegerType>(V->getType()); in insertInteger()
2752 IntegerType *VTy = cast<IntegerType>(V->getType()); in getIntegerSplat()
3991 IntegerType *Ty = cast<IntegerType>(LI->getType()); in presplitLoadsAndStores()
[all …]
H A DInductiveRangeCheckElimination.cpp789 if (!ICI || !isa<IntegerType>(ICI->getOperand(0)->getType())) { in parseLoopStructure()
803 IntegerType *IndVarTy = cast<IntegerType>(LeftValue->getType()); in parseLoopStructure()
824 IntegerType *Ty = cast<IntegerType>(AR->getType()); in parseLoopStructure()
825 IntegerType *WideTy = in parseLoopStructure()
826 IntegerType::get(Ty->getContext(), Ty->getBitWidth() * 2); in parseLoopStructure()
1064 IntegerType *Ty = cast<IntegerType>(LatchTakenCount->getType()); in calculateSubRanges()
1066 auto *RTy = cast<IntegerType>(Range.getType()); in calculateSubRanges()
1421 IntegerType *IVTy = in run()
1422 cast<IntegerType>(Range.getBegin()->getType()); in run()
1587 auto *IVType = cast<IntegerType>(IndVar->getType()); in computeSafeIterationSpace()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp124 StoredValTy = IntegerType::get(StoredValTy->getContext(), StoredValSize); in coerceAvailableValueToLoadTypeHelper()
138 Type *NewIntTy = IntegerType::get(StoredValTy->getContext(), LoadedValSize); in coerceAvailableValueToLoadTypeHelper()
256 if (!isa<IntegerType>(LI->getType()) || !LI->isSimple()) in getLoadLoadClobberFullWidthSize()
446 SrcVal = Helper.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize * 8)); in getStoreValueForLoadHelper()
460 IntegerType::get(Ctx, LoadSize * 8)); in getStoreValueForLoadHelper()
509 Type *DestTy = IntegerType::get(LoadTy->getContext(), NewLoadSize * 8); in getLoadValueForLoad()
560 Helper.CreateZExtOrBitCast(Val, IntegerType::get(Ctx, LoadSize * 8));
H A 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()
H A DSanitizerStats.cpp46 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create()
78 IntegerType *Int32Ty = Type::getInt32Ty(M->getContext()); in finish()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp229 LoadInst* CreateWideLoad(MemInstList &Loads, IntegerType *LoadTy);
704 ConstantInt::get(IntegerType::get(M->getContext(), 64), 0) : in InsertParallelMACs()
705 ConstantInt::get(IntegerType::get(M->getContext(), 32), 0); in InsertParallelMACs()
718 IntegerType *Ty = IntegerType::get(M->getContext(), 32); in InsertParallelMACs()
737 IntegerType *LoadTy) { in CreateWideLoad()
791 IntegerType *OffsetTy = cast<IntegerType>(Offset->getType()); in CreateWideLoad()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp588 IntegerType *getPmpyType() const { in getPmpyType()
590 return IntegerType::get(Ctx, 32); in getPmpyType()
983 IntegerType *DestTy) { in isPromotableTo()
984 IntegerType *T = dyn_cast<IntegerType>(Val->getType()); in isPromotableTo()
1021 IntegerType *DestTy, BasicBlock *LoopB) { in promoteTo()
1038 IntegerType *Ty = cast<IntegerType>(InV->getType()); in promoteTo()
1056 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo()
1081 IntegerType *DestTy = getPmpyType(); in promoteTypes()
1089 IntegerType *T = dyn_cast<IntegerType>(P.getType()); in promoteTypes()
1347 if (!isa<IntegerType>(V->getType())) in convertShiftsToLeft()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h224 IntegerType *IntIdxTy = cast<IntegerType>(DL.getIndexType(I.getType())); in visitPtr()

12345678