[clang] [mlir] [CIR] Implement lowering for 'no-builtins' attributes (PR #178899)
Tobias Gysi via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 30 08:11:53 PST 2026
================
@@ -2719,6 +2719,29 @@ llvm.func @modular_format(%arg : i32) attributes { modular_format = "ident,1,1,f
// -----
+// CHECK-LABEL: @no_builtins_all
+// CHECK-SAME: #[[ATTRS:[0-9]+]]
+llvm.func @no_builtins_all(%arg : i32) attributes { nobuiltins = [] } {
+ llvm.return
+}
+
+// CHECK: #[[ATTRS]]
+// CHECK-SAME: no-builtins
+
+// -----
+
+// CHECK-LABEL: @no_builtins_2
+// CHECK-SAME: #[[ATTRS:[0-9]+]]
+llvm.func @no_builtins_2(%arg : i32) attributes { nobuiltins = ["asdf", "defg"] } {
+ llvm.return
+}
+
+// CHECK: #[[ATTRS]]
+// CHECK-SAME: no-builtin-asdf
+// CHECK-SAME: no-builtin-defg
----------------
gysit wrote:
Is there a test for the call builtin export somewhere?
https://github.com/llvm/llvm-project/pull/178899
More information about the cfe-commits
mailing list