[llvm] [TargetInstrInfo] update INLINEASM memoperands once (PR #74135)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 11:51: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 9553e156cb840ba4bc040bbfc1f44dc284a97c86 6a30b6014b17db143c7810ed3ec336cfbe73e23b -- llvm/lib/CodeGen/TargetInstrInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/TargetInstrInfo.cpp b/llvm/lib/CodeGen/TargetInstrInfo.cpp
index 667b35891d..c328c79080 100644
--- a/llvm/lib/CodeGen/TargetInstrInfo.cpp
+++ b/llvm/lib/CodeGen/TargetInstrInfo.cpp
@@ -609,7 +609,8 @@ static MachineInstr *foldInlineAsmMemOperand(MachineInstr &MI,
foldInlineAsmMemOperand(&NewMI, Op, FI, TII);
// Update mayload/maystore metadata, and memoperands.
- const VirtRegInfo &RI = AnalyzeVirtRegInBundle(MI, MI.getOperand(Op).getReg());
+ const VirtRegInfo &RI =
+ AnalyzeVirtRegInBundle(MI, MI.getOperand(Op).getReg());
MachineOperand &ExtraMO = NewMI.getOperand(InlineAsm::MIOp_ExtraInfo);
MachineMemOperand::Flags Flags = MachineMemOperand::MONone;
if (RI.Reads) {
@@ -1377,10 +1378,9 @@ bool TargetInstrInfo::getMemOperandWithOffset(
// SelectionDAG latency interface.
//===----------------------------------------------------------------------===//
-int
-TargetInstrInfo::getOperandLatency(const InstrItineraryData *ItinData,
- SDNode *DefNode, unsigned DefIdx,
- SDNode *UseNode, unsigned UseIdx) const {
+int TargetInstrInfo::getOperandLatency(const InstrItineraryData *ItinData,
+ SDNode *DefNode, unsigned DefIdx,
+ SDNode *UseNode, unsigned UseIdx) const {
if (!ItinData || ItinData->isEmpty())
return -1;
``````````
</details>
https://github.com/llvm/llvm-project/pull/74135
More information about the llvm-commits
mailing list