aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 8739b24..897e679 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -2315,6 +2315,15 @@ bool LLParser::parseOptionalCallingConv(unsigned &CC) {
#undef CC_VLS_CASE
}
return false;
+ case lltok::kw_cheriot_compartmentcallcc:
+ CC = CallingConv::CHERIoT_CompartmentCall;
+ break;
+ case lltok::kw_cheriot_compartmentcalleecc:
+ CC = CallingConv::CHERIoT_CompartmentCallee;
+ break;
+ case lltok::kw_cheriot_librarycallcc:
+ CC = CallingConv::CHERIoT_LibraryCall;
+ break;
case lltok::kw_cc: {
Lex.Lex();
return parseUInt32(CC);