[llvm] [LLVM][IR] Add textual shorthand for specifying constant vector splats. (PR #74620)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 09:04:42 PST 2023
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 0e1a9e3084cd8dffa5d4f2cf6eabf9e7721e1cdd 59bdd367cbfa7ed793085b4997b497a4d2dca30f -- llvm/include/llvm/AsmParser/LLParser.h llvm/include/llvm/AsmParser/LLToken.h llvm/lib/AsmParser/LLLexer.cpp llvm/lib/AsmParser/LLParser.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/AsmParser/LLParser.h b/llvm/include/llvm/AsmParser/LLParser.h
index 2fa8fd1217..0652fe80a1 100644
--- a/llvm/include/llvm/AsmParser/LLParser.h
+++ b/llvm/include/llvm/AsmParser/LLParser.h
@@ -51,16 +51,23 @@ namespace llvm {
/// or a symbolic (%var) reference. This is just a discriminated union.
struct ValID {
enum {
- t_LocalID, t_GlobalID, // ID in UIntVal.
- t_LocalName, t_GlobalName, // Name in StrVal.
- t_APSInt, t_APFloat, // Value in APSIntVal/APFloatVal.
- t_Null, t_Undef, t_Zero, t_None, t_Poison, // No value.
- t_EmptyArray, // No value: []
- t_Constant, // Value in ConstantVal.
- t_ConstantSplat, // Value in ConstantVal.
- t_InlineAsm, // Value in FTy/StrVal/StrVal2/UIntVal.
- t_ConstantStruct, // Value in ConstantStructElts.
- t_PackedConstantStruct // Value in ConstantStructElts.
+ t_LocalID,
+ t_GlobalID, // ID in UIntVal.
+ t_LocalName,
+ t_GlobalName, // Name in StrVal.
+ t_APSInt,
+ t_APFloat, // Value in APSIntVal/APFloatVal.
+ t_Null,
+ t_Undef,
+ t_Zero,
+ t_None,
+ t_Poison, // No value.
+ t_EmptyArray, // No value: []
+ t_Constant, // Value in ConstantVal.
+ t_ConstantSplat, // Value in ConstantVal.
+ t_InlineAsm, // Value in FTy/StrVal/StrVal2/UIntVal.
+ t_ConstantStruct, // Value in ConstantStructElts.
+ t_PackedConstantStruct // Value in ConstantStructElts.
} Kind = t_LocalID;
LLLexer::LocTy Loc;
``````````
</details>
https://github.com/llvm/llvm-project/pull/74620
More information about the llvm-commits
mailing list