[llvm] Adding Matching and Inference Functionality to Propeller (PR #160706)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 10 00:51:16 PDT 2025


================
@@ -1526,6 +1526,11 @@ void ELFState<ELFT>::writeSectionContent(
         }
         SHeader.sh_size += CBA.writeULEB128(BBE.Size);
         SHeader.sh_size += CBA.writeULEB128(BBE.Metadata);
+        if (FeatureOrErr->BBHash || BBE.Hash.has_value()) {
+          auto Hash = BBE.Hash.has_value() ?
+              BBE.Hash.value() : llvm::yaml::Hex64(0);;
+          SHeader.sh_size += CBA.writeULEB128(Hash);
----------------
wdx727 wrote:

We have encoded the hashes in their original 64-bit form instead of using ULEB encoding. 
Using different hash widths for different functions would increase complexity, so we intend to keep the 64-bit hash format for now. Further research and experimentation will be conducted before compressing the hash bits. Would this approach be acceptable to you?

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


More information about the llvm-commits mailing list