Lines Matching refs:InsnMatcher

894   unsigned getInsnVarID(InstructionMatcher &InsnMatcher) const;
916 void reserveInsnMatcherForMutation(InstructionMatcher *InsnMatcher) { in reserveInsnMatcherForMutation() argument
917 bool R = MutatableInsns.erase(InsnMatcher); in reserveInsnMatcherForMutation()
2387 InstructionMatcher &InsnMatcher = *Matchers.front(); in getFirstConditionAsRootType() local
2388 if (!InsnMatcher.predicates_empty()) in getFirstConditionAsRootType()
2390 dyn_cast<LLTOperandMatcher>(&**InsnMatcher.predicates_begin())) in getFirstConditionAsRootType()
2407 std::unique_ptr<InstructionMatcher> InsnMatcher; member in __anon0a286f430111::InstructionOperandMatcher
2414 InsnMatcher(new InstructionMatcher(Rule, SymbolicName, NumOpsCheck)) {} in InstructionOperandMatcher()
2420 InstructionMatcher &getInsnMatcher() const { return *InsnMatcher; } in getInsnMatcher()
2423 const unsigned NewInsnVarID = InsnMatcher->getInsnVarID(); in emitCaptureOpcodes()
2436 InsnMatcher->emitPredicateOpcodes(Table, Rule); in emitPredicateOpcodes()
2447 if (InsnMatcher->isHigherPriorityThan(*BP->InsnMatcher)) in isHigherPriorityThan()
2647 InstructionMatcher &InsnMatcher = Rule.getInstructionMatcher(SymbolicName); in emitRenderOpcodes() local
2648 unsigned OldInsnVarID = Rule.getInsnVarID(InsnMatcher); in emitRenderOpcodes()
2678 InstructionMatcher &InsnMatcher = Rule.getInstructionMatcher(SymbolicName); in emitRenderOpcodes() local
2679 unsigned OldInsnVarID = Rule.getInsnVarID(InsnMatcher); in emitRenderOpcodes()
2922 InstructionMatcher &InsnMatcher = Rule.getInstructionMatcher(SymbolicName); in emitRenderOpcodes() local
2923 unsigned OldInsnVarID = Rule.getInsnVarID(InsnMatcher); in emitRenderOpcodes()
3232 unsigned RuleMatcher::getInsnVarID(InstructionMatcher &InsnMatcher) const { in getInsnVarID()
3233 const auto &I = InsnVariableIDs.find(&InsnMatcher); in getInsnVarID()
3542 InstructionMatcher &InsnMatcher,
3546 Error importChildMatcher(RuleMatcher &Rule, InstructionMatcher &InsnMatcher,
3552 RuleMatcher &M, InstructionMatcher &InsnMatcher,
3630 InstructionMatcher &InsnMatcher, bool &HasAddedMatcher);
3741 InstructionMatcher &InsnMatcher, bool &HasAddedMatcher) { in addBuiltinPredicates() argument
3754 InsnMatcher.addPredicate<MemoryAddressSpacePredicateMatcher>( in addBuiltinPredicates()
3761 InsnMatcher.addPredicate<MemoryAlignmentPredicateMatcher>(0, MinAlign); in addBuiltinPredicates()
3766 InsnMatcher.addPredicate<MemoryVsLLTSizePredicateMatcher>( in addBuiltinPredicates()
3768 return InsnMatcher; in addBuiltinPredicates()
3771 InsnMatcher.addPredicate<MemoryVsLLTSizePredicateMatcher>( in addBuiltinPredicates()
3773 return InsnMatcher; in addBuiltinPredicates()
3779 InsnMatcher.addPredicate<MemoryVsLLTSizePredicateMatcher>( in addBuiltinPredicates()
3781 return InsnMatcher; in addBuiltinPredicates()
3786 InsnMatcher.addPredicate<MemoryVsLLTSizePredicateMatcher>( in addBuiltinPredicates()
3794 return InsnMatcher; in addBuiltinPredicates()
3799 return InsnMatcher; in addBuiltinPredicates()
3803 return InsnMatcher; in addBuiltinPredicates()
3818 InsnMatcher.addPredicate<MemorySizePredicateMatcher>(0, in addBuiltinPredicates()
3820 return InsnMatcher; in addBuiltinPredicates()
3827 return InsnMatcher; in addBuiltinPredicates()
3832 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>("Monotonic"); in addBuiltinPredicates()
3833 return InsnMatcher; in addBuiltinPredicates()
3836 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>("Acquire"); in addBuiltinPredicates()
3837 return InsnMatcher; in addBuiltinPredicates()
3840 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>("Release"); in addBuiltinPredicates()
3841 return InsnMatcher; in addBuiltinPredicates()
3844 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>( in addBuiltinPredicates()
3846 return InsnMatcher; in addBuiltinPredicates()
3849 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>( in addBuiltinPredicates()
3851 return InsnMatcher; in addBuiltinPredicates()
3856 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>( in addBuiltinPredicates()
3858 return InsnMatcher; in addBuiltinPredicates()
3861 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>( in addBuiltinPredicates()
3863 return InsnMatcher; in addBuiltinPredicates()
3867 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>( in addBuiltinPredicates()
3869 return InsnMatcher; in addBuiltinPredicates()
3872 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>( in addBuiltinPredicates()
3874 return InsnMatcher; in addBuiltinPredicates()
3877 return InsnMatcher; in addBuiltinPredicates()
3881 RuleMatcher &Rule, InstructionMatcher &InsnMatcher, in createAndImportSelDAGMatcher() argument
3893 InsnMatcher.addPredicate<InstructionOpcodeMatcher>( in createAndImportSelDAGMatcher()
3906 InsnMatcher.addPredicate<InstructionOpcodeMatcher>(SrcGIOrNull); in createAndImportSelDAGMatcher()
3913 OperandMatcher &OM = InsnMatcher.addOperand(OpIdx++, "", TempOpIdx); in createAndImportSelDAGMatcher()
3926 InsnMatcher.addPredicate<InstructionImmPredicateMatcher>(Predicate); in createAndImportSelDAGMatcher()
3931 SrcGIEquivOrNull, Predicate, InsnMatcher, HasAddedBuiltinMatcher); in createAndImportSelDAGMatcher()
3945 InsnMatcher.addPredicate<GenericInstructionPredicateMatcher>(Predicate); in createAndImportSelDAGMatcher()
3956 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>("NotAtomic"); in createAndImportSelDAGMatcher()
3959 InsnMatcher.addPredicate<AtomicOrderingMMOPredicateMatcher>( in createAndImportSelDAGMatcher()
3967 InsnMatcher.addOperand(OpIdx++, Src->getName(), TempOpIdx); in createAndImportSelDAGMatcher()
3980 InsnMatcher.addOperand(OpIdx++, "", TempOpIdx); in createAndImportSelDAGMatcher()
3981 return InsnMatcher; in createAndImportSelDAGMatcher()
4000 InsnMatcher.addOperand(OpIdx++, SrcChild->getName(), TempOpIdx); in createAndImportSelDAGMatcher()
4023 if (auto Error = importChildMatcher(Rule, InsnMatcher, PtrChild, true, in createAndImportSelDAGMatcher()
4027 if (auto Error = importChildMatcher(Rule, InsnMatcher, ValueChild, false, in createAndImportSelDAGMatcher()
4030 return InsnMatcher; in createAndImportSelDAGMatcher()
4064 InsnMatcher.addOperand(OpIdx++, SrcChild->getName(), TempOpIdx); in createAndImportSelDAGMatcher()
4078 importChildMatcher(Rule, InsnMatcher, SrcChild, OperandIsAPointer, in createAndImportSelDAGMatcher()
4084 return InsnMatcher; in createAndImportSelDAGMatcher()
4118 RuleMatcher &Rule, InstructionMatcher &InsnMatcher, in importChildMatcher() argument
4137 PhysReg ? InsnMatcher.addPhysRegInput(PhysReg, OpIdx, TempOpIdx) in importChildMatcher()
4138 : InsnMatcher.addOperand(OpIdx, SrcChildName, TempOpIdx); in importChildMatcher()
4196 InsnMatcher.getRuleMatcher(), SrcChild->getName()); in importChildMatcher()
4285 InsnMatcher.getRuleMatcher(), SrcChild->getName(), false); in importChildMatcher()
4472 RuleMatcher &M, InstructionMatcher &InsnMatcher, const TreePatternNode *Src, in createAndImportInstructionRenderer() argument
4481 for (auto PhysInput : InsnMatcher.getPhysRegInputs()) { in createAndImportInstructionRenderer()
5085 InstructionMatcher &InsnMatcher = InsnMatcherOrError.get(); in runOnPattern() local
5098 OperandMatcher &OM0 = InsnMatcher.getOperand(0); in runOnPattern()
5166 OperandMatcher &OM = InsnMatcher.getOperand(OpIdx); in runOnPattern()
5177 OperandMatcher &OM = InsnMatcher.getOperand(OpIdx); in runOnPattern()
5189 OperandMatcher &OM = InsnMatcher.getOperand(OpIdx); in runOnPattern()
5198 createAndImportInstructionRenderer(M, InsnMatcher, Src, Dst); in runOnPattern()
5881 InstructionMatcher &InsnMatcher = *Item.first; in optimize() local
5882 for (auto &OM : InsnMatcher.operands()) { in optimize()
5894 InsnMatcher.optimize(); in optimize()