mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
Mark ADJCALLSTACKUP/DOWN as clobbering ESP so that virtregmap will notice
that it can't assume ESP is unmodified across the instrs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30905 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ad175bd70
commit
f18c074e1b
@ -346,11 +346,15 @@ class Ii32<bits<8> o, Format f, dag ops, string asm, list<dag> pattern>
|
|||||||
// Instruction list...
|
// Instruction list...
|
||||||
//
|
//
|
||||||
|
|
||||||
|
// ADJCALLSTACKDOWN/UP implicitly use/def ESP because they may be expanded into
|
||||||
|
// a stack adjustment and the codegen must know that they may modify the stack
|
||||||
|
// pointer before prolog-epilog rewriting occurs.
|
||||||
def ADJCALLSTACKDOWN : I<0, Pseudo, (ops i32imm:$amt), "#ADJCALLSTACKDOWN",
|
def ADJCALLSTACKDOWN : I<0, Pseudo, (ops i32imm:$amt), "#ADJCALLSTACKDOWN",
|
||||||
[(X86callseq_start imm:$amt)]>;
|
[(X86callseq_start imm:$amt)]>, Imp<[ESP],[ESP]>;
|
||||||
def ADJCALLSTACKUP : I<0, Pseudo, (ops i32imm:$amt1, i32imm:$amt2),
|
def ADJCALLSTACKUP : I<0, Pseudo, (ops i32imm:$amt1, i32imm:$amt2),
|
||||||
"#ADJCALLSTACKUP",
|
"#ADJCALLSTACKUP",
|
||||||
[(X86callseq_end imm:$amt1, imm:$amt2)]>;
|
[(X86callseq_end imm:$amt1, imm:$amt2)]>,
|
||||||
|
Imp<[ESP],[ESP]>;
|
||||||
def IMPLICIT_USE : I<0, Pseudo, (ops variable_ops), "#IMPLICIT_USE", []>;
|
def IMPLICIT_USE : I<0, Pseudo, (ops variable_ops), "#IMPLICIT_USE", []>;
|
||||||
def IMPLICIT_DEF : I<0, Pseudo, (ops variable_ops), "#IMPLICIT_DEF", []>;
|
def IMPLICIT_DEF : I<0, Pseudo, (ops variable_ops), "#IMPLICIT_DEF", []>;
|
||||||
def IMPLICIT_DEF_GR8 : I<0, Pseudo, (ops GR8:$dst),
|
def IMPLICIT_DEF_GR8 : I<0, Pseudo, (ops GR8:$dst),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user