[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)
Alexis Engelke via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 29 04:39:51 PDT 2025
================
@@ -28,6 +33,9 @@ class LLVM_LIBRARY_VISIBILITY WebAssemblyAsmPrinter final : public AsmPrinter {
WebAssemblyFunctionInfo *MFI;
bool signaturesEmitted = false;
+ // vec idx == local func_idx
+ std::vector<std::optional<BranchHintRecord>> branchHints;
----------------
aengelke wrote:
Use SmallVector. Why wrap it in optional, shouldn't an empty hint vector indicate the same?
https://github.com/llvm/llvm-project/pull/146230
More information about the cfe-commits
mailing list