[clang] [llvm] RFC: Implementing new mechanism for hard register operands to inline asm as a constraint. (PR #85846)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 19 12:01:27 PDT 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 ea72c082bc29fdceca33f37477b7588f31630a5f 71c2e7959cff33f9cd6fc98a99b7261d535183af -- clang/test/CodeGen/x86-asm-register-constraint-mix.c clang/test/CodeGen/z-hard-register-inline-asm.c clang/test/Sema/z-hard-register-inline-asm.c clang/include/clang/Basic/TargetInfo.h clang/lib/Basic/TargetInfo.cpp clang/lib/Basic/Targets/AArch64.h clang/lib/Basic/Targets/ARM.h clang/lib/Basic/Targets/RISCV.h clang/lib/Basic/Targets/X86.h clang/lib/CodeGen/CGStmt.cpp clang/test/CodeGen/SystemZ/systemz-inline-asm-02.c clang/test/CodeGen/SystemZ/systemz-inline-asm.c clang/test/CodeGen/aarch64-inline-asm.c clang/test/CodeGen/asm-goto.c clang/test/CodeGen/ms-intrinsics.c
``````````

</details>

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

``````````diff
diff --git a/clang/include/clang/Basic/TargetInfo.h b/clang/include/clang/Basic/TargetInfo.h
index 01d43b8384..fc5656cde5 100644
--- a/clang/include/clang/Basic/TargetInfo.h
+++ b/clang/include/clang/Basic/TargetInfo.h
@@ -1043,8 +1043,8 @@ public:
   ///
   /// This function is used by Sema in order to diagnose conflicts between
   /// the clobber list and the input/output lists.
-  /// The constraint should already by validated in validateHardRegisterAsmConstraint
-  /// so just do some basic checking
+  /// The constraint should already by validated in
+  /// validateHardRegisterAsmConstraint so just do some basic checking
   virtual StringRef getConstraintRegister(StringRef Constraint,
                                           StringRef Expression) const {
     StringRef Reg = Expression;

``````````

</details>


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


More information about the cfe-commits mailing list