[PATCH] D121982: [Xcore] Set Int_MemBarrier as a meta-instruction
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 18 00:46:00 PDT 2022
skan created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
skan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D121982
Files:
llvm/lib/Target/XCore/XCoreInstrInfo.td
llvm/test/DebugInfo/X86/dwarf-mem-barrier.ll
llvm/test/DebugInfo/dwarf-mem-barrier.ll
Index: llvm/test/DebugInfo/dwarf-mem-barrier.ll
===================================================================
--- llvm/test/DebugInfo/dwarf-mem-barrier.ll
+++ llvm/test/DebugInfo/dwarf-mem-barrier.ll
@@ -1,9 +1,9 @@
; Check .loc directive is emitted at correct position
; RUN: llc -O0 -mtriple x86_64-linux-gnu <%s | FileCheck %s
+; RUN: llc -O0 -mtriple xcore-linux-gnu <%s | FileCheck %s
; CHECK: #MEMBARRIER
; CHECK: #MEMBARRIER
-; CHECK: movl $0, -4(%rsp)
; CHECK: .loc 1 1 14 prologue_end # none.c:1:14
define dso_local i32 @main() !dbg !7 {
Index: llvm/lib/Target/XCore/XCoreInstrInfo.td
===================================================================
--- llvm/lib/Target/XCore/XCoreInstrInfo.td
+++ llvm/lib/Target/XCore/XCoreInstrInfo.td
@@ -363,7 +363,7 @@
(select GRRegs:$cond, GRRegs:$T, GRRegs:$F))]>;
}
-let hasSideEffects = 1 in
+let hasSideEffects = 1, isMeta = 1 in
def Int_MemBarrier : PseudoInstXCore<(outs), (ins), "#MEMBARRIER",
[(XCoreMemBarrier)]>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121982.416411.patch
Type: text/x-patch
Size: 1081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220318/934acf9c/attachment.bin>
More information about the llvm-commits
mailing list