[llvm] [clang] [X86][WIP] Use vXi1 for `k` constraint in inline asm (PR #77733)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 10 23:06:56 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 bd0dc357af453f03770c5d43c66ee5a3584abdca 72fa88d9e2277a8df60cf39d8cc96aad984dc2e9 -- clang/lib/CodeGen/CGStmt.cpp clang/lib/CodeGen/Targets/X86.cpp clang/test/CodeGen/X86/avx512-kconstraints-att_inline_asm.c llvm/lib/Target/X86/X86ISelLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/Targets/X86.cpp b/clang/lib/CodeGen/Targets/X86.cpp
index 542377ec08..2291c991fb 100644
--- a/clang/lib/CodeGen/Targets/X86.cpp
+++ b/clang/lib/CodeGen/Targets/X86.cpp
@@ -41,7 +41,7 @@ static llvm::Type* X86AdjustInlineAsmType(CodeGen::CodeGenFunction &CGF,
}
if (Constraint == "k") {
- llvm::Type* Int1Ty = llvm::Type::getInt1Ty(CGF.getLLVMContext());
+ llvm::Type *Int1Ty = llvm::Type::getInt1Ty(CGF.getLLVMContext());
return llvm::FixedVectorType::get(Int1Ty, Ty->getScalarSizeInBits());
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/77733
More information about the llvm-commits
mailing list