mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 14:16:59 +00:00
add SDNPMayLoad to the 'load' sdnode definition. This is enough to get all the x86
instructions (with patterns) that load memory marked, for example. llvm-svn: 45818
This commit is contained in:
parent
c656c40445
commit
3aa2fc1b5c
@ -190,6 +190,7 @@ def SDNPOutFlag : SDNodeProperty; // Write a flag result
|
||||
def SDNPInFlag : SDNodeProperty; // Read a flag operand
|
||||
def SDNPOptInFlag : SDNodeProperty; // Optionally read a flag operand
|
||||
def SDNPMayStore : SDNodeProperty; // May write to memory, sets 'mayStore'.
|
||||
def SDNPMayLoad : SDNodeProperty; // May read memory, sets 'mayLoad'.
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Selection DAG Node definitions.
|
||||
@ -313,7 +314,8 @@ def ret : SDNode<"ISD::RET" , SDTRet, [SDNPHasChain]>;
|
||||
|
||||
// Do not use ld, st directly. Use load, extload, sextload, zextload, store,
|
||||
// and truncst (see below).
|
||||
def ld : SDNode<"ISD::LOAD" , SDTLoad, [SDNPHasChain]>;
|
||||
def ld : SDNode<"ISD::LOAD" , SDTLoad,
|
||||
[SDNPHasChain, SDNPMayLoad]>;
|
||||
def st : SDNode<"ISD::STORE" , SDTStore,
|
||||
[SDNPHasChain, SDNPMayStore]>;
|
||||
def ist : SDNode<"ISD::STORE" , SDTIStore,
|
||||
|
Loading…
x
Reference in New Issue
Block a user