mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add IGF::emitByteOffsetGEP to conveniently create a pointer
at a dynamic offset. Swift SVN r4901
This commit is contained in:
@@ -148,6 +148,13 @@ public:
|
||||
Size size, Alignment align);
|
||||
void emitMemCpy(Address dest, Address src, Size size);
|
||||
|
||||
llvm::Value *emitByteOffsetGEP(llvm::Value *base, llvm::Value *offset,
|
||||
llvm::Type *objectType,
|
||||
const llvm::Twine &name = "");
|
||||
Address emitByteOffsetGEP(llvm::Value *base, llvm::Value *offset,
|
||||
const TypeInfo &type,
|
||||
const llvm::Twine &name = "");
|
||||
|
||||
llvm::Value *emitAllocObjectCall(llvm::Value *metadata, llvm::Value *size,
|
||||
llvm::Value *align,
|
||||
const llvm::Twine &name = "");
|
||||
|
||||
Reference in New Issue
Block a user