mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Add the i128 builtin type to LLVM.
The i128 type is needed as a builtin type in order to support the v1i128 vector type. The PowerPC ABI requires that the i128 and v1i128 types are handled differently when passed as parameters to functions (i128 is passed in pairs of GPRs, v1i128 is passed in a single vector register). http://reviews.llvm.org/D8564 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -310,6 +310,9 @@ LLVMTypeRef LLVMInt32TypeInContext(LLVMContextRef C) {
|
||||
LLVMTypeRef LLVMInt64TypeInContext(LLVMContextRef C) {
|
||||
return (LLVMTypeRef) Type::getInt64Ty(*unwrap(C));
|
||||
}
|
||||
LLVMTypeRef LLVMInt128TypeInContext(LLVMContextRef C) {
|
||||
return (LLVMTypeRef) Type::getInt128Ty(*unwrap(C));
|
||||
}
|
||||
LLVMTypeRef LLVMIntTypeInContext(LLVMContextRef C, unsigned NumBits) {
|
||||
return wrap(IntegerType::get(*unwrap(C), NumBits));
|
||||
}
|
||||
@@ -329,6 +332,9 @@ LLVMTypeRef LLVMInt32Type(void) {
|
||||
LLVMTypeRef LLVMInt64Type(void) {
|
||||
return LLVMInt64TypeInContext(LLVMGetGlobalContext());
|
||||
}
|
||||
LLVMTypeRef LLVMInt128Type(void) {
|
||||
return LLVMInt128TypeInContext(LLVMGetGlobalContext());
|
||||
}
|
||||
LLVMTypeRef LLVMIntType(unsigned NumBits) {
|
||||
return LLVMIntTypeInContext(LLVMGetGlobalContext(), NumBits);
|
||||
}
|
||||
|
Reference in New Issue
Block a user