Searched defs:IntPtrTy (Results 1 - 25 of 39) sorted by relevance

12

/external/llvm/include/llvm/Transforms/Utils/
H A DLocal.h191 Type *IntPtrTy = DL.getIntPtrType(GEP->getType()); local
192 Value *Result = Constant::getNullValue(IntPtrTy);
199 unsigned IntPtrWidth = IntPtrTy->getScalarType()->getIntegerBitWidth();
220 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size),
225 Constant *Scale = ConstantInt::get(IntPtrTy, Size);
226 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/);
233 if (Op->getType() != IntPtrTy)
234 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c");
237 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size),
/external/llvm/lib/Target/AArch64/
H A DAArch64SelectionDAGInfo.cpp36 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); local
40 Entry.Ty = IntPtrTy;
/external/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp47 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); local
54 ConstantInt::get(IntPtrTy, uint64_t(SK) << (IntPtrTy->getBitWidth() -
66 ConstantInt::get(IntPtrTy, 0), ConstantInt::get(B.getInt32Ty(), 2),
67 ConstantInt::get(IntPtrTy, Inits.size() - 1),
/external/clang/lib/CodeGen/
H A DCodeGenTypeCache.h46 llvm::IntegerType *IntPtrTy; member in union:clang::CodeGen::CodeGenTypeCache::__anon1629
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
H A DARMSelectionDAGInfo.cpp157 Type *IntPtrTy = TLI.getTargetData()->getIntPtrType(*DAG.getContext()); local
159 Entry.Ty = IntPtrTy;
164 Entry.Ty = IntPtrTy;
/external/llvm/examples/BrainF/
H A DBrainF.cpp95 Type* IntPtrTy = IntegerType::getInt32Ty(C); local
98 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy);
99 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem,
/external/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h208 IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType())); local
210 Offset = APInt(IntPtrTy->getBitWidth(), 0);
/external/llvm/lib/Target/X86/
H A DX86SelectionDAGInfo.cpp78 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); local
82 Entry.Ty = IntPtrTy;
/external/llvm/unittests/IR/
H A DIRBuilderTest.cpp125 IntegerType *IntPtrTy = Builder.getIntPtrTy(*DL); local
127 EXPECT_EQ(IntPtrTy, IntegerType::get(Ctx, IntPtrBitSize));
/external/swiftshader/third_party/LLVM/examples/BrainF/
H A DBrainF.cpp83 Type* IntPtrTy = IntegerType::getInt32Ty(C); local
86 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy);
87 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem,
/external/swiftshader/third_party/LLVM/lib/Target/X86/
H A DX86SelectionDAGInfo.cpp57 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); local
61 Entry.Ty = IntPtrTy;
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp29 Type *IntPtrTy = TD->getIntPtrType(AI.getContext()); local
30 if (AI.getArraySize()->getType() != IntPtrTy) {
32 IntPtrTy, false);
H A DInstCombineAddSub.cpp404 Type *IntPtrTy = TD.getIntPtrType(GEP->getContext()); local
405 Value *Result = Constant::getNullValue(IntPtrTy);
427 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size),
432 Constant *Scale = ConstantInt::get(IntPtrTy, Size);
434 ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/);
441 if (Op->getType() != IntPtrTy)
442 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c");
445 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size),
/external/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp441 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); local
443 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true);
633 Type *IntPtrTy = DL->getIntPtrType(C.Ins->getType()); local
649 Bump = Builder.CreateSExtOrTrunc(Bump, IntPtrTy);
H A DSeparateConstOffsetFromGEP.cpp720 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local
726 if ((*I)->getType() != IntPtrTy) {
727 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP);
771 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); local
797 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(),
803 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
805 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
818 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset);
843 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); local
845 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy);
1022 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local
[all...]
H A DLoopIdiomRecognize.cpp874 Type *IntPtrTy = Builder.getIntPtrTy(*DL, StrAS); local
878 StrStart = getStartForNegStride(StrStart, BECount, IntPtrTy, StoreSize, SE);
904 LdStart = getStartForNegStride(LdStart, BECount, IntPtrTy, StoreSize, SE);
924 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy);
927 SE->getAddExpr(BECount, SE->getOne(IntPtrTy), SCEV::FlagNUW);
929 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize),
933 Expander.expandCodeFor(NumBytesS, IntPtrTy, Preheader->getTerminator());
/external/llvm/lib/CodeGen/
H A DSafeStack.cpp113 Type *IntPtrTy; member in class:__anon13970::SafeStack
203 IntPtrTy = DL->getIntPtrType(M.getContext());
571 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy),
572 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))),
681 if (ArraySize->getType() != IntPtrTy)
682 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false);
686 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize));
688 Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(UnsafeStackPtr), IntPtrTy);
698 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))),
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
H A DCodeGenPrepare.cpp827 Type *IntPtrTy = local
840 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr");
841 if (V->getType() != IntPtrTy)
842 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr");
849 if (V->getType() == IntPtrTy) {
852 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr");
853 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() <
855 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr");
857 V = Builder.CreateSExt(V, IntPtrTy, "sunkaddr");
860 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMod
[all...]
/external/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp223 IntegerType *IntPtrTy; member in struct:__anon14643::LowerTypeTests
354 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0),
355 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])};
434 CombinedGlobalIntAddr, ConstantInt::get(IntPtrTy, BSI.ByteOffset));
440 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy);
460 B.CreateLShr(PtrOffset, ConstantInt::get(IntPtrTy, BSI.AlignLog2));
463 ConstantInt::get(IntPtrTy, DL.getPointerSizeInBits(0) - BSI.AlignLog2));
467 Constant *BitSizeConst = ConstantInt::get(IntPtrTy, BSI.BitSize);
562 ConstantExpr::getPtrToInt(CombinedGlobalAddr, IntPtrTy);
638 Constant *DestInt = ConstantExpr::getPtrToInt(Dest, IntPtrTy);
[all...]
H A DGlobalOpt.cpp1265 Type *IntPtrTy = DL.getIntPtrType(CI->getType()); local
1266 Value *NMI = CallInst::CreateMalloc(CI, IntPtrTy, FieldTy,
1267 ConstantInt::get(IntPtrTy, TypeSize),
1489 Type *IntPtrTy = DL.getIntPtrType(CI->getType()); local
1491 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize);
1492 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements());
1496 CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy, AllocSize, NumElements,
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DConstantFolding.cpp548 Type *IntPtrTy = TD->getIntPtrType(ResultTy->getContext());
556 Ops[i]->getType() != IntPtrTy) {
560 IntPtrTy,
562 Ops[i], IntPtrTy));
585 Type *IntPtrTy = TD->getIntPtrType(Ptr->getContext());
597 assert((CE == 0 || CE->getType() == IntPtrTy) &&
612 unsigned BitWidth = TD->getTypeSizeInBits(IntPtrTy);
671 IntegerType *IntPtrTy = TD->getIntPtrType(Ty->getContext()); local
676 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0));
682 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewId
916 Type *IntPtrTy = TD->getIntPtrType(CE0->getContext()); local
938 Type *IntPtrTy = TD->getIntPtrType(CE0->getContext()); local
[all...]
/external/llvm/lib/Analysis/
H A DConstantFolding.cpp694 Type *IntPtrTy = DL.getIntPtrType(ResultTy); local
702 Ops[i]->getType() != IntPtrTy) {
706 IntPtrTy,
708 Ops[i], IntPtrTy));
760 Type *IntPtrTy = DL.getIntPtrType(Ptr->getType());
771 assert((!CE || CE->getType() == IntPtrTy) &&
786 unsigned BitWidth = DL.getTypeSizeInBits(IntPtrTy);
862 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0));
871 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx));
1105 Type *IntPtrTy local
1117 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); local
1129 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); local
1143 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); local
[all...]
H A DInlineCost.cpp1182 Type *IntPtrTy = DL.getIntPtrType(V->getContext()); local
1183 return cast<ConstantInt>(ConstantInt::get(IntPtrTy, Offset));
H A DScalarEvolutionExpander.cpp400 Type *IntPtrTy = DL.getIntPtrType(PTy); local
412 const SCEV *ElSize = SE.getSizeOfExpr(IntPtrTy, ElTy);
/external/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp482 Type *IntPtrTy = TD.getIntPtrType(*DAG.getContext()); local
486 Entry.Ty = IntPtrTy;
492 CallingConv::C, IntPtrTy,
542 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); local
546 Entry.Ty = IntPtrTy;

Completed in 970 milliseconds

12