// code.
list<Predicate> Predicates = [];
- // Added cost passed onto matching pattern.
- int AddedCost = 0;
+ // Added complexity passed onto matching pattern.
+ int AddedComplexity = 0;
// These bits capture information about the high-level semantics of the
// instruction.
//
class Pattern<dag patternToMatch, list<dag> resultInstrs> {
- dag PatternToMatch = patternToMatch;
- list<dag> ResultInstrs = resultInstrs;
- list<Predicate> Predicates = []; // See class Instruction in Target.td.
- int AddedCost = 0; // See class Instruction in Target.td.
+ dag PatternToMatch = patternToMatch;
+ list<dag> ResultInstrs = resultInstrs;
+ list<Predicate> Predicates = []; // See class Instruction in Target.td.
+ int AddedComplexity = 0; // See class Instruction in Target.td.
}
// Pat - A simple (but common) form of a pattern, which produces a simple result