Home
last modified time | relevance | path

Searched refs:CreatePtrToInt (Results 1 – 25 of 58) sorted by relevance

123

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DAMDGPUEmitPrintf.cpp43 return Builder.CreatePtrToInt(Arg, Int64Ty); in fitArgInto64Bits()
134 auto Begin = Builder.CreatePtrToInt(Str, Int64Ty); in getStrlenWithNull()
135 auto End = Builder.CreatePtrToInt(PtrPhi, Int64Ty); in getStrlenWithNull()
H A DVNCoercion.cpp96 StoredVal = Helper.CreatePtrToInt(StoredVal, StoredValTy); in coerceAvailableValueToLoadType()
125 StoredVal = Helper.CreatePtrToInt(StoredVal, StoredValTy); in coerceAvailableValueToLoadType()
417 Builder.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType())); in getStoreValueForLoadHelper()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DInstSimplifyFolder.h147 Value *CreatePtrToInt(Constant *C, Type *DestTy) const override { in CreatePtrToInt() function
148 return ConstFolder.CreatePtrToInt(C, DestTy); in CreatePtrToInt()
H A DTargetFolder.h216 Constant *CreatePtrToInt(Constant *C, Type *DestTy) const override { in CreatePtrToInt() function
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DRuntimeDebugBuilder.cpp138 Val = Builder.CreatePtrToInt(Val, Builder.getInt64Ty()); in prepareValuesForPrinting()
216 Val = Builder.CreatePtrToInt(Val, Builder.getInt64Ty()); in createGPUPrinterT()
H A DIslExprBuilder.cpp511 LHS = Builder.CreatePtrToInt(LHS, PtrAsIntTy); in createOpICmp()
513 RHS = Builder.CreatePtrToInt(RHS, PtrAsIntTy); in createOpICmp()
733 V = Builder.CreatePtrToInt(V, Builder.getIntNTy(DL.getPointerSizeInBits())); in createId()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DIRBuilderFolder.h87 virtual Value *CreatePtrToInt(Constant *C, Type *DestTy) const = 0;
H A DNoFolder.h145 Instruction *CreatePtrToInt(Constant *C, Type *DestTy) const override { in CreatePtrToInt() function
H A DConstantFolder.h208 Constant *CreatePtrToInt(Constant *C, Type *DestTy) const override { in CreatePtrToInt() function
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DSpeculation.cpp120 Mutator.CreatePtrToInt(&Fn, Type::getInt64Ty(MContext)); in emit()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86WinEHState.cpp324 LSDA = Builder.CreatePtrToInt(LSDA, Int32Ty); in emitExceptionRegistrationRecord()
343 Value *FrameAddrI32 = Builder.CreatePtrToInt(FrameAddr, Int32Ty); in emitExceptionRegistrationRecord()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp248 Offsets = Builder.CreatePtrToInt( in decomposePtr()
790 Builder.CreatePtrToInt( in tryCreateIncrementingGatScat()
847 Builder.CreatePtrToInt( in tryCreateIncrementingWBGatScat()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSafeStack.cpp554 IRB.CreatePtrToInt(BasePointer, IntPtrTy), in moveStaticAllocasToUnsafeStack()
671 Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(StackPtrTy, UnsafeStackPtr), in moveDynamicAllocasToUnsafeStack()
H A DAtomicExpandPass.cpp391 ? Builder.CreatePtrToInt(Val, NewTy) in convertAtomicXchgToIntegerType()
710 Value *AddrInt = Builder.CreatePtrToInt(Addr, DL.getIntPtrType(Ctx)); in createMaskInstrs()
1143 Value *NewCmp = Builder.CreatePtrToInt(CI->getCompareOperand(), NewTy); in convertCmpXchgToIntegerType()
1144 Value *NewNewVal = Builder.CreatePtrToInt(CI->getNewValOperand(), NewTy); in convertCmpXchgToIntegerType()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUReplaceLDSUseWithPointer.cpp242 Builder.CreateStore(Builder.CreatePtrToInt(GV, Type::getInt16Ty(Ctx)), in initializeLDSPointer()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp2225 return IRB.CreatePtrToInt(V, ShadowTy); in CreateAppToShadowCast()
4408 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
4425 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
4550 IRB.CreateIntToPtr(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
4700 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in getVAField64()
4710 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in getVAField32()
4988 IRB.CreateIntToPtr(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
5238 IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in copyRegSaveArea()
5259 IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in copyOverflowArea()
H A DAddressSanitizer.cpp979 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
991 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
3411 IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy), in handleDynamicAllocaCall()
3419 IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout); in handleDynamicAllocaCall()
H A DHWAddressSanitizer.cpp1140 return IRB.CreatePtrToInt(IRB.GetInsertBlock()->getParent(), IntptrTy); in getPC()
1152 CachedSP = IRB.CreatePtrToInt( in getSP()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DRewriteStatepointsForGC.cpp1719 Value *Base_int = Builder.CreatePtrToInt( in makeStatepointExplicitImpl()
1721 Value *Derived_int = Builder.CreatePtrToInt( in makeStatepointExplicitImpl()
2539 Builder.CreatePtrToInt(Base, Type::getIntNTy(Context, IntPtrSize), in inlineGetBaseAndOffset()
2542 Builder.CreatePtrToInt(Derived, Type::getIntNTy(Context, IntPtrSize), in inlineGetBaseAndOffset()
H A DSeparateConstOffsetFromGEP.cpp922 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy); in lowerToArithmetics()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/OpenACC/
H A DOpenACCToLLVMIRTranslation.cpp119 builder.CreatePtrToInt(sizeGep, llvm::Type::getInt64Ty(ctx)); in getSizeInBytes()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprScalar.cpp1372 return Builder.CreatePtrToInt(Src, DstTy, "conv"); in EmitScalarConversion()
2324 return Builder.CreatePtrToInt(PtrExpr, ConvertType(DestTy)); in VisitCastExpr()
3846 = Builder.CreatePtrToInt(op.LHS, CGF.PtrDiffTy, "sub.ptr.lhs.cast"); in EmitSub()
3848 = Builder.CreatePtrToInt(op.RHS, CGF.PtrDiffTy, "sub.ptr.rhs.cast"); in EmitSub()
4800 Src = Builder.CreatePtrToInt(Src, DL.getIntPtrType(SrcTy)); in createCastsForTypeOfSameSize()
5001 Builder.CreatePtrToInt(BasePtr, DL.getIntPtrType(BasePtr->getType())); in EmitGEPOffsetInBytes()
5003 Builder.CreatePtrToInt(GEPVal, DL.getIntPtrType(GEPVal->getType())); in EmitGEPOffsetInBytes()
5127 auto *IntPtr = Builder.CreatePtrToInt(Ptr, IntPtrTy); in EmitCheckedInBoundsGEP()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp509 return Builder.CreatePtrToInt(V, DestTy); in createCast()
/llvm-project-15.0.7/llvm/lib/IR/
H A DIRBuilder.cpp1043 Value *LHS_int = CreatePtrToInt(LHS, Type::getInt64Ty(Context)); in CreatePtrDiff()
1044 Value *RHS_int = CreatePtrToInt(RHS, Type::getInt64Ty(Context)); in CreatePtrDiff()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp467 Value *AsInt = Builder.CreatePtrToInt(Ptr, HVC.getIntTy()); in createAlignedPointer()
766 AlignVal = Builder.CreatePtrToInt(WithMinOffset.Addr, HVC.getIntTy()); in realignGroup()

123