mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 17:58:22 +00:00
Expose a new flag to TargetInstrInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23094 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
09321dcf5a
commit
8b50f9b8dc
@ -81,6 +81,7 @@ namespace llvm {
|
||||
bool isCommutable;
|
||||
bool isTerminator;
|
||||
bool hasDelaySlot;
|
||||
bool usesCustomDAGSChedInserter;
|
||||
bool hasVariableNumberOfOperands;
|
||||
|
||||
CodeGenInstruction(Record *R, const std::string &AsmStr);
|
||||
|
@ -250,6 +250,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
|
||||
isCommutable = R->getValueAsBit("isCommutable");
|
||||
isTerminator = R->getValueAsBit("isTerminator");
|
||||
hasDelaySlot = R->getValueAsBit("hasDelaySlot");
|
||||
usesCustomDAGSChedInserter = R->getValueAsBit("usesCustomDAGSChedInserter");
|
||||
hasVariableNumberOfOperands = false;
|
||||
|
||||
try {
|
||||
|
@ -197,6 +197,8 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
|
||||
if (Inst.isConvertibleToThreeAddress) OS << "|M_CONVERTIBLE_TO_3_ADDR";
|
||||
if (Inst.isCommutable) OS << "|M_COMMUTABLE";
|
||||
if (Inst.isTerminator) OS << "|M_TERMINATOR_FLAG";
|
||||
if (Inst.usesCustomDAGSChedInserter)
|
||||
OS << "|M_USES_CUSTOM_DAG_SCHED_INSERTION";
|
||||
OS << ", 0";
|
||||
|
||||
// Emit all of the target-specific flags...
|
||||
|
Loading…
Reference in New Issue
Block a user