[clang] [llvm] [clang][RISCV] Use macro to check if intrinsics are supported (PR #187197)

Brandon Wu via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 09:12:21 PDT 2026


================
@@ -431,6 +431,17 @@ void RVVEmitter::createHeader(raw_ostream &OS) {
 
   OS << "#pragma clang riscv intrinsic vector\n\n";
 
+  auto DefineIntrinsicMacro = [&](ArrayRef<const char *> Exts) {
----------------
4vtomat wrote:

you are right, I think we can remove it, I was trying make it self documented code in the first place lol

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


More information about the cfe-commits mailing list