HomeSort by: relevance | last modified time | path
    Searched refs:IntPtrTy (Results 1 - 25 of 50) sorted by relevancy

1 2

  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
SanitizerStats.cpp 46 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout());
53 ConstantInt::get(IntPtrTy, uint64_t(SK) << (IntPtrTy->getBitWidth() -
65 ConstantInt::get(IntPtrTy, 0), ConstantInt::get(B.getInt32Ty(), 2),
66 ConstantInt::get(IntPtrTy, Inits.size() - 1),
RelLookupTableConverter.cpp 110 Type *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext());
111 Constant *Base = llvm::ConstantExpr::getPtrToInt(RelLookupTable, IntPtrTy);
112 Constant *Target = llvm::ConstantExpr::getPtrToInt(Element, IntPtrTy);
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
SeparateConstOffsetFromGEP.cpp 798 Type *IntPtrTy = DL->getIntPtrType(GEP->getType());
804 if ((*I)->getType() != IntPtrTy) {
805 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP);
849 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType());
875 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(),
881 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
883 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
896 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset);
921 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType());
923 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy);
    [all...]
NaryReassociate.cpp 447 Type *IntPtrTy = DL->getIntPtrType(GEP->getType());
448 if (RHS->getType() != IntPtrTy)
449 RHS = Builder.CreateSExtOrTrunc(RHS, IntPtrTy);
452 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize));
StraightLineStrengthReduce.cpp 488 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType()));
490 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true);
679 Type *IntPtrTy = DL->getIntPtrType(C.Ins->getType());
695 Bump = Builder.CreateSExtOrTrunc(Bump, IntPtrTy);
LowerMatrixIntrinsics.cpp 1140 Type *IntPtrTy = Builder.getIntPtrTy(Load->getModule()->getDataLayout());
1142 const_cast<Value *>(StoreLoc.Ptr), IntPtrTy, "store.begin");
1144 StoreBegin, ConstantInt::get(IntPtrTy, StoreLoc.Size.getValue()),
1147 IntPtrTy, "load.begin");
1157 LoadBegin, ConstantInt::get(IntPtrTy, LoadLoc.Size.getValue()),
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
CodeGenTypeCache.h 49 llvm::IntegerType *IntPtrTy;
ConstantInitBuilder.cpp 141 base = llvm::ConstantExpr::getPtrToInt(base, Builder.CGM.IntPtrTy);
142 target = llvm::ConstantExpr::getPtrToInt(target, Builder.CGM.IntPtrTy);
146 if (Builder.CGM.IntPtrTy != offsetType) {
CodeGenFunction.cpp 569 auto *GOTAsInt = llvm::ConstantExpr::getPtrToInt(GV, IntPtrTy);
570 auto *FuncAsInt = llvm::ConstantExpr::getPtrToInt(F, IntPtrTy);
572 return (IntPtrTy == Int32Ty)
581 auto *PCRelAsInt = Builder.CreateSExt(EncodedAddr, IntPtrTy);
582 auto *FuncAsInt = Builder.CreatePtrToInt(F, IntPtrTy, "func_addr.int");
1838 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSize.getQuantity());
2308 if (Alignment->getType() != IntPtrTy)
2310 Builder.CreateIntCast(Alignment, IntPtrTy, false, "casted.align");
2311 if (OffsetValue && OffsetValue->getType() != IntPtrTy)
2313 Builder.CreateIntCast(OffsetValue, IntPtrTy, true, "casted.offset")
    [all...]
CGExpr.cpp 738 llvm::Value *Size = llvm::ConstantInt::get(IntPtrTy, TySize);
749 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy };
775 PtrAsInt = Builder.CreatePtrToInt(Ptr, IntPtrTy);
777 PtrAsInt, llvm::ConstantInt::get(IntPtrTy, AlignVal - 1));
779 Builder.CreateICmpEQ(Align, llvm::ConstantInt::get(IntPtrTy, 0));
836 llvm::Type *VPtrTy = llvm::PointerType::get(IntPtrTy, 0);
842 Hash = Builder.CreateTrunc(Hash, IntPtrTy);
846 llvm::Type *HashTable = llvm::ArrayType::get(IntPtrTy, CacheSize);
850 llvm::ConstantInt::get(IntPtrTy,
854 IntPtrTy, Builder.CreateInBoundsGEP(HashTable, Cache, Indices)
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/BrainF/
BrainF.cpp 93 Type* IntPtrTy = IntegerType::getInt32Ty(C);
96 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy);
97 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem,
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/
SafeStack.cpp 138 Type *IntPtrTy;
215 IntPtrTy(DL.getIntPtrType(F.getContext())),
561 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy),
562 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))),
664 if (ArraySize->getType() != IntPtrTy)
665 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false);
669 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize));
672 IntPtrTy);
682 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))),
CodeGenPrepare.cpp 2494 Value *GetFieldAsValue(FieldName Field, Type *IntPtrTy) {
2505 return ConstantInt::get(IntPtrTy, BaseOffs);
3564 Type *IntPtrTy = SQ.DL.getIntPtrType(AddrModes[0].OriginalValue->getType());
3566 Value *DV = AM.GetFieldAsValue(DifferentField, IntPtrTy);
5234 Type *IntPtrTy = DL->getIntPtrType(Addr->getType());
5262 if (cast<IntegerType>(IntPtrTy)->getBitWidth() >
5306 if (V->getType() != IntPtrTy)
5307 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr");
5315 if (V->getType() == IntPtrTy) {
5318 assert(cast<IntegerType>(IntPtrTy)->getBitWidth()
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
AArch64SelectionDAGInfo.cpp 35 Type *IntPtrTy = Type::getInt8PtrTy(*DAG.getContext());
39 Entry.Ty = IntPtrTy;
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
LowerTypeTests.cpp 399 IntegerType *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext(), 0);
645 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0),
646 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])};
752 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy);
755 ConstantExpr::getPtrToInt(TIL.OffsetedGlobal, IntPtrTy);
770 B.CreateLShr(PtrOffset, ConstantExpr::getZExt(TIL.AlignLog2, IntPtrTy));
776 IntPtrTy));
999 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min));
1000 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max));
1004 if (AbsWidth == IntPtrTy->getBitWidth()
    [all...]
WholeProgramDevirt.cpp 510 IntegerType *IntPtrTy;
543 IntPtrTy(M.getDataLayout().getIntPtrType(M.getContext(), 0)),
1501 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min));
1502 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max));
1507 if (AbsWidth == IntPtrTy->getBitWidth())
  /src/external/apache2/llvm/dist/llvm/lib/Target/X86/
X86SelectionDAGInfo.cpp 79 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext());
83 Entry.Ty = IntPtrTy;
  /src/external/apache2/llvm/dist/llvm/lib/IR/
Instructions.cpp 625 BasicBlock *InsertAtEnd, Type *IntPtrTy,
638 ArraySize = ConstantInt::get(IntPtrTy, 1);
639 else if (ArraySize->getType() != IntPtrTy) {
641 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
644 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
652 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy,
667 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size");
675 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy);
713 Type *IntPtrTy, Type *AllocTy,
717 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
HexagonLoopIdiomRecognition.cpp 2054 Type *IntPtrTy = Builder.getIntPtrTy(*DL, SI->getPointerAddressSpace());
2164 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy);
2168 SE->getAddExpr(BECount, SE->getOne(IntPtrTy), SCEV::FlagNUW);
2170 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize),
2172 Value *NumBytes = Expander.expandCodeFor(NumBytesS, IntPtrTy, ExpPt);
2218 Value *LA = Builder.CreatePtrToInt(LoadBasePtr, IntPtrTy);
2219 Value *SA = Builder.CreatePtrToInt(StoreBasePtr, IntPtrTy);
  /src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/GISel/
AArch64LegalizerInfo.cpp 978 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits());
991 MIRBuilder.buildConstant(IntPtrTy, Alignment.value() - 1);
1003 auto Size = MIRBuilder.buildConstant(IntPtrTy, alignTo(ValSize, PtrAlign));
  /src/external/apache2/llvm/dist/llvm/include/llvm/Frontend/OpenMP/
OMPIRBuilder.h 735 /// \param IntPtrTy Pointer size type
742 llvm::IntegerType *IntPtrTy,
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
ConstantFolding.cpp 1245 Type *IntPtrTy = DL.getIntPtrType(CE0->getType());
1249 IntPtrTy, false);
1254 // Only do this transformation if the int is intptrty in size, otherwise
1257 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType());
1258 if (CE0->getType() == IntPtrTy) {
1269 Type *IntPtrTy = DL.getIntPtrType(CE0->getType());
1274 IntPtrTy, false);
1276 IntPtrTy, false);
1280 // Only do this transformation if the int is intptrty in size, otherwise
1283 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType())
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
IRTranslator.cpp 2584 LLT IntPtrTy = getLLTForType(*IntPtrIRTy, *DL);
2585 if (MRI->getType(NumElts) != IntPtrTy) {
2586 Register ExtElts = MRI->createGenericVirtualRegister(IntPtrTy);
2593 Register AllocSize = MRI->createGenericVirtualRegister(IntPtrTy);
2602 auto SAMinusOne = MIRBuilder.buildConstant(IntPtrTy, StackAlign.value() - 1);
2603 auto AllocAdd = MIRBuilder.buildAdd(IntPtrTy, AllocSize, SAMinusOne,
2606 MIRBuilder.buildConstant(IntPtrTy, ~(uint64_t)(StackAlign.value() - 1));
2607 auto AlignedAlloc = MIRBuilder.buildAnd(IntPtrTy, AllocAdd, AlignCst);
  /src/external/apache2/llvm/dist/llvm/lib/Target/XCore/
XCoreISelLowering.cpp 465 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context);
469 Entry.Ty = IntPtrTy;
475 CallingConv::C, IntPtrTy,
516 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context);
520 Entry.Ty = IntPtrTy;
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
InstCombineLoadStoreAlloca.cpp 217 Type *IntPtrTy = IC.getDataLayout().getIntPtrType(AI.getType());
218 if (AI.getArraySize()->getType() != IntPtrTy) {
219 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), IntPtrTy, false);

Completed in 58 milliseconds

1 2