Update LLVM backend to begin work on a generic ABI system

This commit is contained in:
gingerBill
2020-11-12 00:43:49 +00:00
parent 6ee4f51670
commit 70b8b3c7dd
4 changed files with 1322 additions and 176 deletions

View File

@@ -886,6 +886,16 @@ Type *alloc_type_named(String name, Type *base, Entity *type_name) {
return t;
}
bool is_calling_convention_none(ProcCallingConvention calling_convention) {
switch (calling_convention) {
case ProcCC_None:
case ProcCC_PureNone:
case ProcCC_InlineAsm:
return true;
}
return false;
}
Type *alloc_type_tuple() {
Type *t = alloc_type(Type_Tuple);
return t;