[clang] [CIR][RISCV] Support zbb builitin codegen (PR #188932)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 30 12:03:33 PDT 2026
================
@@ -47,7 +47,12 @@ CIRGenFunction::emitRISCVBuiltinExpr(unsigned builtinID, const CallExpr *e) {
// Zbb
case RISCV::BI__builtin_riscv_orc_b_32:
- case RISCV::BI__builtin_riscv_orc_b_64:
+ case RISCV::BI__builtin_riscv_orc_b_64: {
+ intrinsicName = "riscv.orc.b";
+ returnType = convertType(e->getType());
----------------
andykaylor wrote:
Classic codegen does this with a single `convertType` call before the switch. Is there any reason not to do that here?
https://github.com/llvm/llvm-project/pull/188932
More information about the cfe-commits
mailing list