Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp66 StoredVal = Helper.CreatePtrToInt(StoredVal, StoredValTy); in coerceAvailableValueToLoadTypeHelper()
96 StoredVal = Helper.CreatePtrToInt(StoredVal, StoredValTy); in coerceAvailableValueToLoadTypeHelper()
325 SrcVal = Helper.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType())); in getStoreValueForLoadHelper()
/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86WinEHState.cpp331 LSDA = Builder.CreatePtrToInt(LSDA, Int32Ty); in emitExceptionRegistrationRecord()
347 Value *FrameAddrI32 = Builder.CreatePtrToInt(FrameAddr, Int32Ty); in emitExceptionRegistrationRecord()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DConstantFolder.h212 Constant *CreatePtrToInt(Constant *C, Type *DestTy) const { in CreatePtrToInt() function
H A DNoFolder.h276 Instruction *CreatePtrToInt(Constant *C, Type *DestTy) const { in CreatePtrToInt() function
H A DIRBuilder.h1722 Value *CreatePtrToInt(Value *V, Type *DestTy,
1815 return CreatePtrToInt(V, DestTy, Name);
2131 Value *LHS_int = CreatePtrToInt(LHS, Type::getInt64Ty(Context));
2132 Value *RHS_int = CreatePtrToInt(RHS, Type::getInt64Ty(Context));
2243 Value *PtrIntValue = CreatePtrToInt(PtrValue, IntPtrTy, "ptrint"); in CreateAlignmentAssumptionHelper()
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DTargetFolder.h195 Constant *CreatePtrToInt(Constant *C, Type *DestTy) const { in CreatePtrToInt() function
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DSafeStack.cpp544 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy), in moveStaticAllocasToUnsafeStack()
663 Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(UnsafeStackPtr), IntPtrTy); in moveDynamicAllocasToUnsafeStack()
H A DAtomicExpandPass.cpp635 Value *AddrInt = Builder.CreatePtrToInt(Addr, DL.getIntPtrType(Ctx)); in createMaskInstrs()
1040 Value *NewCmp = Builder.CreatePtrToInt(CI->getCompareOperand(), NewTy); in convertCmpXchgToIntegerType()
1041 Value *NewNewVal = Builder.CreatePtrToInt(CI->getNewValOperand(), NewTy); in convertCmpXchgToIntegerType()
H A DCodeGenPrepare.cpp4774 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
4786 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
4812 Value *V = Builder.CreatePtrToInt(AddrMode.BaseGV, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp844 auto PC = IRB.CreatePtrToInt(F, IntptrTy); in emitPrologue()
847 Value *SP = IRB.CreatePtrToInt( in emitPrologue()
H A DMemorySanitizer.cpp2079 return IRB.CreatePtrToInt(V, ShadowTy); in CreateAppToShadowCast()
3860 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
3875 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
3998 IRB.CreateIntToPtr(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
4147 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in getVAField64()
4157 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in getVAField32()
4432 IRB.CreateIntToPtr(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
H A DAddressSanitizer.cpp937 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
949 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
3226 Value *NewAddress = IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy), in handleDynamicAllocaCall()
3234 IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout); in handleDynamicAllocaCall()
H A DDataFlowSanitizer.cpp1055 IRB.CreateAnd(IRB.CreatePtrToInt(Addr, IntptrTy), in getShadowAddress()
1056 IRB.CreatePtrToInt(ShadowPtrMaskValue, IntptrTy)), in getShadowAddress()
H A DSanitizerCoverage.cpp814 auto FrameAddrInt = IRB.CreatePtrToInt(FrameAddrPtr, IntptrTy); in InjectCoverageAtBlock()
H A DPGOInstrumentation.cpp770 Builder.CreatePtrToInt(Callee, Builder.getInt64Ty()), in instrumentOneFunc()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprScalar.cpp1296 return Builder.CreatePtrToInt(Src, DstTy, "conv"); in EmitScalarConversion()
2178 return Builder.CreatePtrToInt(PtrExpr, ConvertType(DestTy)); in VisitCastExpr()
3387 = Builder.CreatePtrToInt(op.LHS, CGF.PtrDiffTy, "sub.ptr.lhs.cast"); in EmitSub()
3389 = Builder.CreatePtrToInt(op.RHS, CGF.PtrDiffTy, "sub.ptr.rhs.cast"); in EmitSub()
4225 Src = Builder.CreatePtrToInt(Src, DL.getIntPtrType(SrcTy)); in createCastsForTypeOfSameSize()
4495 auto *IntPtr = Builder.CreatePtrToInt(GEP->getPointerOperand(), IntPtrTy); in EmitCheckedInBoundsGEP()
H A DCGStmt.cpp2081 Arg = Builder.CreatePtrToInt(Arg, IntPtrTy); in EmitAsmStmt()
2230 Tmp = Builder.CreatePtrToInt(Tmp, in EmitAsmStmt()
H A DCGExpr.cpp743 PtrAsInt = Builder.CreatePtrToInt(Ptr, IntPtrTy); in EmitTypeCheck()
1991 RHS = Builder.CreatePtrToInt(RHS, ResultType, "sub.ptr.rhs.cast"); in EmitStoreThroughLValue()
1993 Builder.CreatePtrToInt(LvalueDst.getPointer(), ResultType, in EmitStoreThroughLValue()
2166 Value = Builder.CreatePtrToInt(Value, Ty); in EmitStoreThroughGlobalRegLValue()
2779 return Builder.CreatePtrToInt(V, TargetTy); in EmitCheckValue()
H A DCodeGenPGO.cpp937 Builder.CreatePtrToInt(ValuePtr, Builder.getInt64Ty()), in valueProfile()
H A DCGBuiltin.cpp80 return CGF.Builder.CreatePtrToInt(V, IntType); in EmitToInt()
2476 Value *Result = Builder.CreatePtrToInt(Ptr, IntPtrTy, "extend.cast"); in EmitBuiltinExpr()
3241 Exchange = Builder.CreatePtrToInt(Exchange, IntType); in EmitBuiltinExpr()
3244 Builder.CreatePtrToInt(EmitScalarExpr(E->getArg(2)), IntType); in EmitBuiltinExpr()
5758 ArgValue = Builder.CreatePtrToInt(ArgValue, RegisterType); in EmitSpecialRegisterBuiltin()
6052 StoreVal = Builder.CreatePtrToInt(StoreVal, Int32Ty); in EmitARMBuiltinExpr()
6930 StoreVal = Builder.CreatePtrToInt(StoreVal, Int64Ty); in EmitAArch64BuiltinExpr()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp506 return Builder.CreatePtrToInt(V, DestTy); in createCast()
H A DLowerTypeTests.cpp685 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); in lowerTypeTestCall()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp891 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy); in lowerToArithmetics()
H A DSROA.cpp1757 return IRB.CreateBitCast(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)), in convertValue()
1762 return IRB.CreateBitCast(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)), in convertValue()
1765 return IRB.CreatePtrToInt(V, NewTy); in convertValue()
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp2197 Value *LA = Builder.CreatePtrToInt(LoadBasePtr, IntPtrTy); in processCopyingStore()
2198 Value *SA = Builder.CreatePtrToInt(StoreBasePtr, IntPtrTy); in processCopyingStore()

12