[llvm] [LLVM][TableGen] Add overloaded intrinsic name conflict checks (PR #109314)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 22:23:46 PDT 2024


================
@@ -1834,6 +1834,10 @@ def int_is_constant : DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_any_ty],
                                 [IntrNoMem, IntrWillReturn, IntrConvergent],
                                 "llvm.is.constant">;
 
+def int_is_constant0 : DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_any_ty],
+                                [IntrNoMem, IntrWillReturn, IntrConvergent],
+                                "llvm.is.constant.my">;
----------------
arsenm wrote:

You should be able to define an intrinsic in a .td test file to test this without cluttering the real intrinsic namespace 

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


More information about the llvm-commits mailing list