mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Add in support for getIntPtrType to get the pointer type based on the address space.
This checkin also adds in some tests that utilize these paths and updates some of the clients. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166578 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -337,11 +337,13 @@ public:
|
||||
///
|
||||
unsigned getPreferredTypeAlignmentShift(Type *Ty) const;
|
||||
|
||||
/// getIntPtrType - Return an unsigned integer type that is the same size or
|
||||
/// greater to the host pointer size.
|
||||
/// FIXME: Need to remove the default argument when the rest of the LLVM code
|
||||
/// base has been updated.
|
||||
IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace = 0) const;
|
||||
/// getIntPtrType - Return an integer type that is the same size or
|
||||
/// greater to the pointer size based on the address space.
|
||||
IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace) const;
|
||||
|
||||
/// getIntPtrType - Return an integer type that is the same size or
|
||||
/// greater to the pointer size based on the Type.
|
||||
IntegerType *getIntPtrType(Type *) const;
|
||||
|
||||
/// getIndexedOffset - return the offset from the beginning of the type for
|
||||
/// the specified indices. This is used to implement getelementptr.
|
||||
|
Reference in New Issue
Block a user