Skip to content

Commit 92e78eb

Browse files
committed
Rename syscall and return
1 parent 7dda748 commit 92e78eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/SBF/SBFInstrInfo.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ let isCall=1, hasDelaySlot=0, Uses = [R10],
854854
def JALX : CALLX<"callx">, Requires<[SBFNoCallxSrc]>;
855855
let DecoderNamespace = "SBFv2" in {
856856
def JALX_v2 : CALLX_SRC_REG<"callx">, Requires<[SBFCallxSrc]>;
857-
def SYSCALL_v2 : SYSCALL<"syscall">, Requires<[SBFHasStaticSyscalls]>;
857+
def SYSCALL_v3 : SYSCALL<"syscall">, Requires<[SBFHasStaticSyscalls]>;
858858
}
859859
}
860860

@@ -900,7 +900,7 @@ class RETURN<string OpcodeStr>
900900

901901
let isReturn = 1, isTerminator = 1, hasDelaySlot=0, isBarrier = 1,
902902
isNotDuplicable = 1, Predicates = [SBFHasStaticSyscalls] in {
903-
def RETURN : RETURN<"return">;
903+
def RETURN_v3 : RETURN<"return">;
904904
}
905905

906906
// ADJCALLSTACKDOWN/UP pseudo insns
@@ -966,7 +966,7 @@ def : Pat<(SBFcall texternalsym:$dst), (JAL texternalsym:$dst)>;
966966
def : Pat<(SBFcall imm:$dst), (JAL imm:$dst)>;
967967
def : Pat<(SBFcall GPR:$dst), (JALX GPR:$dst)>, Requires<[SBFNoCallxSrc]>;
968968
def : Pat<(SBFcall GPR:$dst), (JALX_v2 GPR:$dst)>, Requires<[SBFCallxSrc]>;
969-
def : Pat<(SBFSyscall imm:$imm), (SYSCALL_v2 imm:$imm)>, Requires<[SBFHasStaticSyscalls]>;
969+
def : Pat<(SBFSyscall imm:$imm), (SYSCALL_v3 imm:$imm)>, Requires<[SBFHasStaticSyscalls]>;
970970

971971
// Loads
972972
let Predicates = [SBFNoALU32, SBFOldMemEncoding] in {

0 commit comments

Comments
 (0)