[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 29 04:39:51 PDT 2025


================
@@ -18,6 +18,11 @@
 namespace llvm {
 class WebAssemblyTargetStreamer;
 
+struct BranchHintRecord {
+  MCSymbol *func_sym;
+  SmallVector<std::pair<MCSymbol *, uint8_t>, 0> hints;
----------------
aengelke wrote:

```suggestion
  SmallVector<std::pair<MCSymbol *, uint8_t>, 0> Hints;
```

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


More information about the llvm-commits mailing list