mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-24 04:56:51 +00:00
PredicateOperand can be used as a normal operand for isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36947 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
59039632e1
commit
f88b3a5698
@ -272,7 +272,7 @@ def memrix : Operand<iPTR> { // memri where the imm is shifted 2 bits.
|
||||
|
||||
// PowerPC Predicate operand. 20 = (0<<5)|20 = always, CR0 is a dummy reg
|
||||
// that doesn't matter.
|
||||
def pred : PredicateOperand<(ops imm, CRRC), (ops (i32 20), CR0)> {
|
||||
def pred : PredicateOperand<OtherVT, (ops imm, CRRC), (ops (i32 20), CR0)> {
|
||||
let PrintMethod = "printPredicateOperand";
|
||||
}
|
||||
|
||||
|
@ -254,7 +254,7 @@ def i64imm : Operand<i64>;
|
||||
/// instruction. OpTypes specifies the MIOperandInfo for the operand, and
|
||||
/// AlwaysVal specifies the value of this predicate when set to "always
|
||||
/// execute".
|
||||
class PredicateOperand<dag OpTypes, dag AlwaysVal> : Operand<OtherVT> {
|
||||
class PredicateOperand<ValueType ty, dag OpTypes, dag AlwaysVal> : Operand<ty> {
|
||||
let MIOperandInfo = OpTypes;
|
||||
dag ExecuteAlways = AlwaysVal;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user