[llvm] [NVPTX] Improve NVVMReflect Efficiency (PR #134416)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 4 15:59:40 PDT 2025


================
@@ -78,27 +91,51 @@ INITIALIZE_PASS(NVVMReflect, "nvvm-reflect",
                 "Replace occurrences of __nvvm_reflect() calls with 0/1", false,
                 false)
 
-static bool runNVVMReflect(Function &F, unsigned SmVersion) {
-  if (!NVVMReflectEnabled)
-    return false;
+static cl::list<std::string>
+    ReflectList("nvvm-reflect-list", cl::value_desc("name=<int>"), cl::Hidden,
+                cl::desc("A list of string=num assignments"),
----------------
Artem-B wrote:

Nit: ".. list of comma-separated key=<int> values"

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


More information about the llvm-commits mailing list