Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/X86/X86InstrInfo.h
Show First 20 Lines • Show All 632 Lines • ▼ Show 20 Lines | private: | ||||
/// Check whether the first instruction, whose only | /// Check whether the first instruction, whose only | ||||
/// purpose is to update flags, can be made redundant. | /// purpose is to update flags, can be made redundant. | ||||
/// CMPrr can be made redundant by SUBrr if the operands are the same. | /// CMPrr can be made redundant by SUBrr if the operands are the same. | ||||
/// This function can be extended later on. | /// This function can be extended later on. | ||||
/// SrcReg, SrcRegs: register operands for FlagI. | /// SrcReg, SrcRegs: register operands for FlagI. | ||||
/// ImmValue: immediate for FlagI if it takes an immediate. | /// ImmValue: immediate for FlagI if it takes an immediate. | ||||
bool isRedundantFlagInstr(const MachineInstr &FlagI, Register SrcReg, | bool isRedundantFlagInstr(const MachineInstr &FlagI, Register SrcReg, | ||||
Register SrcReg2, int64_t ImmMask, int64_t ImmValue, | Register SrcReg2, int64_t ImmMask, int64_t ImmValue, | ||||
const MachineInstr &OI, bool *IsSwapped) const; | const MachineInstr &OI, bool *IsSwapped, | ||||
int64_t *ImmDelta) const; | |||||
}; | }; | ||||
} // namespace llvm | } // namespace llvm | ||||
#endif | #endif |