mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 07:17:32 +00:00
Rename M_PREDICATED to M_PREDICABLE; Moved isPredicable() to MachineInstr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37121 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -184,6 +184,10 @@ bool MachineOperand::isIdenticalTo(const MachineOperand &Other) const {
|
||||
}
|
||||
}
|
||||
|
||||
bool MachineInstr::isPredicable() const {
|
||||
return TID->Flags & M_PREDICABLE;
|
||||
}
|
||||
|
||||
/// findRegisterUseOperandIdx() - Returns the MachineOperand that is a use of
|
||||
/// the specific register or -1 if it is not found. It further tightening
|
||||
/// the search criteria to a use that kills the register if isKill is true.
|
||||
@@ -212,7 +216,7 @@ MachineOperand *MachineInstr::findRegisterDefOperand(unsigned Reg) {
|
||||
// is used to represent the predicate.
|
||||
MachineOperand *MachineInstr::findFirstPredOperand() {
|
||||
const TargetInstrDescriptor *TID = getInstrDescriptor();
|
||||
if (TID->Flags & M_PREDICATED) {
|
||||
if (TID->Flags & M_PREDICABLE) {
|
||||
for (unsigned i = 0, e = getNumOperands(); i != e; ++i)
|
||||
if ((TID->OpInfo[i].Flags & M_PREDICATE_OPERAND))
|
||||
return &getOperand(i);
|
||||
@@ -244,7 +248,7 @@ void MachineInstr::copyKillDeadInfo(const MachineInstr *MI) {
|
||||
/// copyPredicates - Copies predicate operand(s) from MI.
|
||||
void MachineInstr::copyPredicates(const MachineInstr *MI) {
|
||||
const TargetInstrDescriptor *TID = MI->getInstrDescriptor();
|
||||
if (TID->Flags & M_PREDICATED) {
|
||||
if (TID->Flags & M_PREDICABLE) {
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
if ((TID->OpInfo[i].Flags & M_PREDICATE_OPERAND)) {
|
||||
const MachineOperand &MO = MI->getOperand(i);
|
||||
|
Reference in New Issue
Block a user