[clang] [llvm] [RISCV] QCI Interrupt Support (PR #129957)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 17:14:45 PST 2025


================
@@ -20831,9 +20831,20 @@ SDValue RISCVTargetLowering::LowerFormalArguments(
     StringRef Kind =
       MF.getFunction().getFnAttribute("interrupt").getValueAsString();
 
-    if (!(Kind == "supervisor" || Kind == "machine"))
+    constexpr StringRef SupportedInterruptKinds[] = {
----------------
topperc wrote:

StringRef -> StringLiteral

https://github.com/llvm/llvm-project/pull/129957


More information about the cfe-commits mailing list