forked from OSchip/llvm-project
[globalisel] Allow combiners to query legality
llvm-svn: 357820
This commit is contained in:
parent
bcf7f3c573
commit
ab8c60867b
|
@ -1062,6 +1062,9 @@ public:
|
|||
LegalizeActionStep getAction(const MachineInstr &MI,
|
||||
const MachineRegisterInfo &MRI) const;
|
||||
|
||||
bool isLegal(const LegalityQuery &Query) const {
|
||||
return getAction(Query).Action == LegalizeAction::Legal;
|
||||
}
|
||||
bool isLegal(const MachineInstr &MI, const MachineRegisterInfo &MRI) const;
|
||||
bool isLegalOrCustom(const MachineInstr &MI,
|
||||
const MachineRegisterInfo &MRI) const;
|
||||
|
|
Loading…
Reference in New Issue