Lines Matching refs:TD

55 void LLVMDisposeTargetData(LLVMTargetDataRef TD) {  in LLVMDisposeTargetData()  argument
56 delete unwrap(TD); in LLVMDisposeTargetData()
64 char *LLVMCopyStringRepOfTargetData(LLVMTargetDataRef TD) { in LLVMCopyStringRepOfTargetData() argument
65 std::string StringRep = unwrap(TD)->getStringRepresentation(); in LLVMCopyStringRepOfTargetData()
69 LLVMByteOrdering LLVMByteOrder(LLVMTargetDataRef TD) { in LLVMByteOrder() argument
70 return unwrap(TD)->isLittleEndian() ? LLVMLittleEndian : LLVMBigEndian; in LLVMByteOrder()
73 unsigned LLVMPointerSize(LLVMTargetDataRef TD) { in LLVMPointerSize() argument
74 return unwrap(TD)->getPointerSize(0); in LLVMPointerSize()
77 unsigned LLVMPointerSizeForAS(LLVMTargetDataRef TD, unsigned AS) { in LLVMPointerSizeForAS() argument
78 return unwrap(TD)->getPointerSize(AS); in LLVMPointerSizeForAS()
81 LLVMTypeRef LLVMIntPtrType(LLVMTargetDataRef TD) { in LLVMIntPtrType() argument
82 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()))); in LLVMIntPtrType()
85 LLVMTypeRef LLVMIntPtrTypeForAS(LLVMTargetDataRef TD, unsigned AS) { in LLVMIntPtrTypeForAS() argument
86 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()), AS)); in LLVMIntPtrTypeForAS()
89 LLVMTypeRef LLVMIntPtrTypeInContext(LLVMContextRef C, LLVMTargetDataRef TD) { in LLVMIntPtrTypeInContext() argument
90 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C))); in LLVMIntPtrTypeInContext()
93 LLVMTypeRef LLVMIntPtrTypeForASInContext(LLVMContextRef C, LLVMTargetDataRef TD, unsigned AS) { in LLVMIntPtrTypeForASInContext() argument
94 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C), AS)); in LLVMIntPtrTypeForASInContext()
97 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMSizeOfTypeInBits() argument
98 return unwrap(TD)->getTypeSizeInBits(unwrap(Ty)); in LLVMSizeOfTypeInBits()
101 unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMStoreSizeOfType() argument
102 return unwrap(TD)->getTypeStoreSize(unwrap(Ty)); in LLVMStoreSizeOfType()
105 unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMABISizeOfType() argument
106 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); in LLVMABISizeOfType()
109 unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMABIAlignmentOfType() argument
110 return unwrap(TD)->getABITypeAlign(unwrap(Ty)).value(); in LLVMABIAlignmentOfType()
113 unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMCallFrameAlignmentOfType() argument
114 return unwrap(TD)->getABITypeAlign(unwrap(Ty)).value(); in LLVMCallFrameAlignmentOfType()
117 unsigned LLVMPreferredAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMPreferredAlignmentOfType() argument
118 return unwrap(TD)->getPrefTypeAlign(unwrap(Ty)).value(); in LLVMPreferredAlignmentOfType()
121 unsigned LLVMPreferredAlignmentOfGlobal(LLVMTargetDataRef TD, in LLVMPreferredAlignmentOfGlobal() argument
123 return unwrap(TD) in LLVMPreferredAlignmentOfGlobal()
128 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument
131 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); in LLVMElementAtOffset()
134 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument
137 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element); in LLVMOffsetOfElement()