Lines Matching refs:TD
59 void LLVMDisposeTargetData(LLVMTargetDataRef TD) { in LLVMDisposeTargetData() argument
60 delete unwrap(TD); in LLVMDisposeTargetData()
68 char *LLVMCopyStringRepOfTargetData(LLVMTargetDataRef TD) { in LLVMCopyStringRepOfTargetData() argument
69 std::string StringRep = unwrap(TD)->getStringRepresentation(); in LLVMCopyStringRepOfTargetData()
73 LLVMByteOrdering LLVMByteOrder(LLVMTargetDataRef TD) { in LLVMByteOrder() argument
74 return unwrap(TD)->isLittleEndian() ? LLVMLittleEndian : LLVMBigEndian; in LLVMByteOrder()
77 unsigned LLVMPointerSize(LLVMTargetDataRef TD) { in LLVMPointerSize() argument
78 return unwrap(TD)->getPointerSize(0); in LLVMPointerSize()
81 unsigned LLVMPointerSizeForAS(LLVMTargetDataRef TD, unsigned AS) { in LLVMPointerSizeForAS() argument
82 return unwrap(TD)->getPointerSize(AS); in LLVMPointerSizeForAS()
85 LLVMTypeRef LLVMIntPtrType(LLVMTargetDataRef TD) { in LLVMIntPtrType() argument
86 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()))); in LLVMIntPtrType()
89 LLVMTypeRef LLVMIntPtrTypeForAS(LLVMTargetDataRef TD, unsigned AS) { in LLVMIntPtrTypeForAS() argument
90 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()), AS)); in LLVMIntPtrTypeForAS()
93 LLVMTypeRef LLVMIntPtrTypeInContext(LLVMContextRef C, LLVMTargetDataRef TD) { in LLVMIntPtrTypeInContext() argument
94 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C))); in LLVMIntPtrTypeInContext()
97 LLVMTypeRef LLVMIntPtrTypeForASInContext(LLVMContextRef C, LLVMTargetDataRef TD, unsigned AS) { in LLVMIntPtrTypeForASInContext() argument
98 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C), AS)); in LLVMIntPtrTypeForASInContext()
101 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMSizeOfTypeInBits() argument
102 return unwrap(TD)->getTypeSizeInBits(unwrap(Ty)); in LLVMSizeOfTypeInBits()
105 unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMStoreSizeOfType() argument
106 return unwrap(TD)->getTypeStoreSize(unwrap(Ty)); in LLVMStoreSizeOfType()
109 unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMABISizeOfType() argument
110 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); in LLVMABISizeOfType()
113 unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMABIAlignmentOfType() argument
114 return unwrap(TD)->getABITypeAlign(unwrap(Ty)).value(); in LLVMABIAlignmentOfType()
117 unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMCallFrameAlignmentOfType() argument
118 return unwrap(TD)->getABITypeAlign(unwrap(Ty)).value(); in LLVMCallFrameAlignmentOfType()
121 unsigned LLVMPreferredAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMPreferredAlignmentOfType() argument
122 return unwrap(TD)->getPrefTypeAlignment(unwrap(Ty)); in LLVMPreferredAlignmentOfType()
125 unsigned LLVMPreferredAlignmentOfGlobal(LLVMTargetDataRef TD, in LLVMPreferredAlignmentOfGlobal() argument
127 return unwrap(TD) in LLVMPreferredAlignmentOfGlobal()
132 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument
135 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); in LLVMElementAtOffset()
138 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument
141 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element); in LLVMOffsetOfElement()