[clang] [llvm] [HLSL] Adding Flatten and Branch if attributes (PR #116331)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 22 14:34:08 PST 2024


================
@@ -300,6 +301,36 @@ static MDTuple *emitTopLevelLibraryNode(Module &M, MDNode *RMD,
   return constructEntryMetadata(nullptr, nullptr, RMD, Properties, Ctx);
 }
 
+// TODO: We might need to refactor this to be more generic,
+// in case we need more metadata to be replaced.
+static void replaceMetadata(Module &M) {
----------------
llvm-beanz wrote:

Maybe a more descriptive name, like `translateBranchMetadata`?

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


More information about the cfe-commits mailing list