[llvm] [AsmParser] Support non-consecutive global value numbers (PR #80013)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 06:55:33 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 4c2422e56ef17ca113be160cf85672c4736bc11e dc10048276a09cca99f1ce19b134de8b159ff6c0 -- llvm/include/llvm/AsmParser/NumberedValues.h llvm/include/llvm/AsmParser/LLParser.h llvm/include/llvm/AsmParser/SlotMapping.h llvm/lib/AsmParser/LLParser.cpp llvm/lib/CodeGen/MIRParser/MIParser.cpp llvm/unittests/AsmParser/AsmParserTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/AsmParser/NumberedValues.h b/llvm/include/llvm/AsmParser/NumberedValues.h
index 50c977de61..6ea75754c0 100644
--- a/llvm/include/llvm/AsmParser/NumberedValues.h
+++ b/llvm/include/llvm/AsmParser/NumberedValues.h
@@ -15,8 +15,7 @@ namespace llvm {
 
 /// Mapping from value ID to value, which also remembers what the next unused
 /// ID is.
-template <class T>
-class NumberedValues {
+template <class T> class NumberedValues {
   DenseMap<unsigned, T> Vals;
   unsigned NextUnusedID = 0;
 

``````````

</details>


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


More information about the llvm-commits mailing list