Home
last modified time | relevance | path

Searched refs:PtrAsInt (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/Transforms/IPO/
DLowerTypeTests.cpp440 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); in lowerBitSetCall() local
443 return B.CreateICmpEQ(PtrAsInt, OffsetedGlobalAsInt); in lowerBitSetCall()
445 Value *PtrOffset = B.CreateSub(PtrAsInt, OffsetedGlobalAsInt); in lowerBitSetCall()
/external/clang/lib/CodeGen/
DTargetInfo.cpp244 llvm::Value *PtrAsInt = Ptr; in emitRoundPointerUpToAlignment() local
246 PtrAsInt = CGF.Builder.CreatePtrToInt(PtrAsInt, CGF.IntPtrTy); in emitRoundPointerUpToAlignment()
247 PtrAsInt = CGF.Builder.CreateAdd(PtrAsInt, in emitRoundPointerUpToAlignment()
249 PtrAsInt = CGF.Builder.CreateAnd(PtrAsInt, in emitRoundPointerUpToAlignment()
251 PtrAsInt = CGF.Builder.CreateIntToPtr(PtrAsInt, in emitRoundPointerUpToAlignment()
254 return PtrAsInt; in emitRoundPointerUpToAlignment()
/external/llvm-project/llvm/lib/Transforms/IPO/
DLowerTypeTests.cpp753 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); in lowerTypeTestCall() local
758 return B.CreateICmpEQ(PtrAsInt, OffsetedGlobalAsInt); in lowerTypeTestCall()
760 Value *PtrOffset = B.CreateSub(PtrAsInt, OffsetedGlobalAsInt); in lowerTypeTestCall()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DLowerTypeTests.cpp743 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); in lowerTypeTestCall() local
748 return B.CreateICmpEQ(PtrAsInt, OffsetedGlobalAsInt); in lowerTypeTestCall()
750 Value *PtrOffset = B.CreateSub(PtrAsInt, OffsetedGlobalAsInt); in lowerTypeTestCall()
/external/llvm-project/clang/lib/CodeGen/
DTargetInfo.cpp280 llvm::Value *PtrAsInt = Ptr; in emitRoundPointerUpToAlignment() local
282 PtrAsInt = CGF.Builder.CreatePtrToInt(PtrAsInt, CGF.IntPtrTy); in emitRoundPointerUpToAlignment()
283 PtrAsInt = CGF.Builder.CreateAdd(PtrAsInt, in emitRoundPointerUpToAlignment()
285 PtrAsInt = CGF.Builder.CreateAnd(PtrAsInt, in emitRoundPointerUpToAlignment()
287 PtrAsInt = CGF.Builder.CreateIntToPtr(PtrAsInt, in emitRoundPointerUpToAlignment()
290 return PtrAsInt; in emitRoundPointerUpToAlignment()
DCGExpr.cpp762 llvm::Value *PtrAsInt = nullptr; in EmitTypeCheck() local
775 PtrAsInt = Builder.CreatePtrToInt(Ptr, IntPtrTy); in EmitTypeCheck()
777 PtrAsInt, llvm::ConstantInt::get(IntPtrTy, AlignVal - 1)); in EmitTypeCheck()
794 PtrAsInt ? PtrAsInt : Ptr); in EmitTypeCheck()