Home
last modified time | relevance | path

Searched refs:CodeGenInstruction (Results 1 – 25 of 41) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DX86FoldTablesEmitter.cpp74 const CodeGenInstruction *RegInst;
75 const CodeGenInstruction *MemInst;
96 X86FoldTableEntry(const CodeGenInstruction *RegInst, in X86FoldTableEntry()
97 const CodeGenInstruction *MemInst) in X86FoldTableEntry()
169 bool operator()(const CodeGenInstruction *LHS, in operator ()()
210 void updateTables(const CodeGenInstruction *RegInst,
337 const CodeGenInstruction *MemInst;
346 bool operator()(const CodeGenInstruction *RegInst) { in operator ()()
532 const CodeGenInstruction *MemInst) { in addBroadcastEntry()
640 std::vector<const CodeGenInstruction *> MemInsts; in run()
[all …]
H A DX86CompressEVEXTablesEmitter.cpp42 std::vector<const CodeGenInstruction *> PreCompressionInsts;
45 std::map<uint64_t, std::vector<const CodeGenInstruction *>> CompressedInsts;
47 typedef std::pair<const CodeGenInstruction *, const CodeGenInstruction *>
49 typedef std::map<StringRef, std::vector<const CodeGenInstruction *>>
112 const CodeGenInstruction *OldInst;
115 IsMatch(const CodeGenInstruction *OldInst) : OldInst(OldInst) {} in IsMatch()
117 bool operator()(const CodeGenInstruction *NewInst) { in operator ()()
156 ArrayRef<const CodeGenInstruction *> NumberedInstructions = in run()
159 for (const CodeGenInstruction *Inst : NumberedInstructions) { in run()
191 for (const CodeGenInstruction *Inst : PreCompressionInsts) { in run()
[all …]
H A DX86MnemonicTables.cpp41 StringMap<SmallVector<const CodeGenInstruction *, 0>> MnemonicToCGInstrMap; in run()
43 ArrayRef<const CodeGenInstruction *> NumberedInstructions = in run()
45 for (const CodeGenInstruction *I : NumberedInstructions) { in run()
74 const CodeGenInstruction *CGI = *Mnemonics.begin(); in run()
78 for (const CodeGenInstruction *CGI : Mnemonics) { in run()
H A DCodeGenTarget.h37 class CodeGenInstruction; variable
62 std::unique_ptr<CodeGenInstruction>> Instructions;
76 mutable std::vector<const CodeGenInstruction*> InstrsByEnum;
159 DenseMap<const Record*, std::unique_ptr<CodeGenInstruction>> &
166 CodeGenInstruction &getInstruction(const Record *InstRec) const { in getInstruction()
189 ArrayRef<const CodeGenInstruction *> getInstructionsByEnumValue() const { in getInstructionsByEnumValue()
195 typedef ArrayRef<const CodeGenInstruction *>::const_iterator inst_iterator;
H A DPseudoLoweringEmitter.cpp36 CodeGenInstruction Source; // The source pseudo instruction definition.
37 CodeGenInstruction Dest; // The destination instruction to lower to.
40 PseudoExpansion(CodeGenInstruction &s, CodeGenInstruction &d, in PseudoExpansion()
55 CodeGenInstruction &Insn,
73 addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Insn, in addDagOperandMapping()
156 CodeGenInstruction Insn(Operator); in evaluateExpansion()
192 CodeGenInstruction SourceInsn(Rec); in evaluateExpansion()
237 CodeGenInstruction &Source = Expansion.Source; in emitLoweringEmitter()
238 CodeGenInstruction &Dest = Expansion.Dest; in emitLoweringEmitter()
H A DInstrInfoEmitter.cpp90 void emitRecord(const CodeGenInstruction &Inst, unsigned Num,
96 ArrayRef<const CodeGenInstruction *> NumberedInstructions);
107 ArrayRef<const CodeGenInstruction *> NumberedInstructions);
110 ArrayRef<const CodeGenInstruction *> NumberedInstructions);
116 OperandInfoTy GetOperandInfo(const CodeGenInstruction &Inst);
126 InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) { in GetOperandInfo()
254 for (const CodeGenInstruction *Inst : NumberedInstructions) { in initOperandMapData()
357 ArrayRef<const CodeGenInstruction *> NumberedInstructions) { in emitOperandTypeMappings()
499 ArrayRef<const CodeGenInstruction *> NumberedInstructions) { in emitLogicalOperandSizeMappings()
954 ArrayRef<const CodeGenInstruction *> NumberedInstructions = in run()
[all …]
H A DAsmWriterInst.h23 class CodeGenInstruction; variable
83 const CodeGenInstruction *CGI;
86 AsmWriterInst(const CodeGenInstruction &CGI, unsigned CGIIndex,
H A DWebAssemblyDisassemblerEmitter.h21 class CodeGenInstruction; variable
26 const ArrayRef<const CodeGenInstruction *> &NumberedInstructions);
H A DCompressInstEmitter.cpp102 CodeGenInstruction Source;
104 CodeGenInstruction Dest;
115 CompressPat(CodeGenInstruction &S, CodeGenInstruction &D, in CompressPat()
142 CodeGenInstruction &DestInst);
200 CodeGenInstruction &Inst, in addDagOperandMapping()
267 static bool verifyDagOpCount(CodeGenInstruction &Inst, DagInit *Dag, in verifyDagOpCount()
356 StringMap<unsigned> &SourceOperands, CodeGenInstruction &DestInst) { in createInstOperandMapping()
431 CodeGenInstruction SourceInst(SourceOperator); in evaluateCompressPat()
440 CodeGenInstruction DestInst(DestOperator); in evaluateCompressPat()
658 CodeGenInstruction &Source = in emitCompressInstEmitter()
[all …]
H A DCodeGenTarget.cpp306 for (const CodeGenInstruction *Inst : getInstructionsByEnumValue()) { in getInstNamespace()
482 Instructions[Insts[i]] = std::make_unique<CodeGenInstruction>(Insts[i]); in ReadInstructions()
485 static const CodeGenInstruction *
488 std::unique_ptr<CodeGenInstruction>> &Insts, in GetInstByName()
512 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum()
522 const CodeGenInstruction *CGI = I.second.get(); in ComputeInstrsByEnum()
535 [](const CodeGenInstruction *Rec1, const CodeGenInstruction *Rec2) { in ComputeInstrsByEnum()
H A DX86RecognizableInstr.h230 RecognizableInstrBase(const CodeGenInstruction &insn);
359 RecognizableInstr(DisassemblerTables &tables, const CodeGenInstruction &insn,
370 const CodeGenInstruction &insn, InstrUID uid);
373 std::string getMnemonic(const CodeGenInstruction *I, unsigned Variant);
H A DCodeEmitterGen.cpp70 raw_ostream &o, ArrayRef<const CodeGenInstruction *> NumberedInstructions,
101 CodeGenInstruction &CGI = Target.getInstruction(R); in addCodeToMergeInOperand()
357 raw_ostream &o, ArrayRef<const CodeGenInstruction *> NumberedInstructions, in emitInstructionBaseValues()
366 for (const CodeGenInstruction *CGI : NumberedInstructions) { in emitInstructionBaseValues()
427 ArrayRef<const CodeGenInstruction*> NumberedInstructions = in run()
430 if (any_of(NumberedInstructions, [](const CodeGenInstruction *CGI) { in run()
440 for (const CodeGenInstruction *CGI : NumberedInstructions) { in run()
H A DCodeGenInstAlias.h26 class CodeGenInstruction; variable
46 CodeGenInstruction *ResultInst;
H A DVarLenCodeEmitterGen.cpp85 ArrayRef<const CodeGenInstruction *> NumberedInstructions,
229 for (const CodeGenInstruction *CGI : NumberedInstructions) { in run()
349 raw_ostream &OS, ArrayRef<const CodeGenInstruction *> NumberedInstructions, in emitInstructionBaseValues()
358 for (const CodeGenInstruction *CGI : NumberedInstructions) { in emitInstructionBaseValues()
451 CodeGenInstruction &CGI = Target.getInstruction(R); in getInstructionCaseForEncoding()
H A DWebAssemblyDisassemblerEmitter.cpp28 const ArrayRef<const CodeGenInstruction *> &NumberedInstructions) { in emitWebAssemblyDisassemblerTables()
32 std::map<unsigned, std::pair<unsigned, const CodeGenInstruction *>>> in emitWebAssemblyDisassemblerTables()
H A DCodeGenInstruction.cpp431 CodeGenInstruction::CodeGenInstruction(Record *R) in CodeGenInstruction() function in CodeGenInstruction
519 MVT::SimpleValueType CodeGenInstruction::
536 std::string CodeGenInstruction::
581 bool CodeGenInstruction::isOperandImpl(StringRef OpListName, unsigned i, in isOperandImpl()
H A DInstrDocsEmitter.cpp68 for (const CodeGenInstruction *II : Target.getInstructionsByEnumValue()) { in EmitInstrDocs()
87 CodeGenInstruction::FlattenAsmStringVariants(II->AsmString, VarNum); in EmitInstrDocs()
H A DDisassemblerEmitter.cpp105 ArrayRef<const CodeGenInstruction*> numberedInstructions = in EmitDisassembler()
H A DCodeGenInstruction.h227 class CodeGenInstruction {
306 CodeGenInstruction(Record *R);
H A DDAGISelMatcher.h26 class CodeGenInstruction; variable
1027 const CodeGenInstruction &CGI;
1037 EmitNodeMatcherCommon(const CodeGenInstruction &cgi, in EmitNodeMatcherCommon()
1047 const CodeGenInstruction &getInstruction() const { return CGI; } in getInstruction()
1085 EmitNodeMatcher(const CodeGenInstruction &cgi, in EmitNodeMatcher()
1107 MorphNodeToMatcher(const CodeGenInstruction &cgi, in MorphNodeToMatcher()
H A DCodeGenSchedule.h34 class CodeGenInstruction; variable
278 bool isUnsupported(const CodeGenInstruction &Inst) const;
555 unsigned getSchedClassIdx(const CodeGenInstruction &Inst) const;
H A DCodeGenSchedule.cpp79 ArrayRef<const CodeGenInstruction *> Instructions = in apply()
150 bool operator()(const CodeGenInstruction *LHS, StringRef RHS) { in apply()
153 bool operator()(StringRef LHS, const CodeGenInstruction *RHS) { in apply()
165 const auto HandleNonGeneric = [&](const CodeGenInstruction *Inst) { in apply()
623 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in collectSchedRW()
897 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in collectSchedClasses()
924 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in collectSchedClasses()
990 CodeGenSchedModels::getSchedClassIdx(const CodeGenInstruction &Inst) const { in getSchedClassIdx()
2005 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in checkCompleteness()
2216 bool CodeGenProcModel::isUnsupported(const CodeGenInstruction &Inst) const { in isUnsupported()
H A DDAGISelMatcherGen.cpp696 CodeGenInstruction &II = CGP.getTargetInfo().getInstruction(ImpDef); in EmitResultLeafAsOperand()
754 CodeGenInstruction &II = CGT.getInstruction(Op); in mayInstNodeLoadOrStore()
783 CodeGenInstruction &II = CGT.getInstruction(Op); in EmitResultInstructionAsOperand()
1056 CodeGenInstruction &II = CGT.getInstruction(DstPat->getOperator()); in EmitResultCode()
H A DAsmMatcherEmitter.cpp506 PointerUnion<const CodeGenInstruction*, const CodeGenInstAlias*> DefRec;
508 const CodeGenInstruction *getResultInst() const { in getResultInst()
509 if (isa<const CodeGenInstruction *>(DefRec)) in getResultInst()
510 return cast<const CodeGenInstruction *>(DefRec); in getResultInst()
544 MatchableInfo(const CodeGenInstruction &CGI) in MatchableInfo()
930 CodeGenInstruction::FlattenAsmStringVariants(AsmString, in initialize()
1619 if (isa<const CodeGenInstruction *>(II->DefRec)) in buildInfo()
1625 if (isa<const CodeGenInstruction *>(II->DefRec)) { in buildInfo()
1688 const CodeGenInstruction &CGI = *cast<const CodeGenInstruction *>(II->DefRec); in buildInstructionOperandReference()
1775 const CodeGenInstruction *ResultInst = getResultInst(); in buildInstructionResultOperands()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/
H A DPatterns.h36 class CodeGenInstruction; variable
161 void addOpcode(const CodeGenInstruction *I) { Insts.push_back(I); } in addOpcode()
167 SmallVector<const CodeGenInstruction *, 4> Insts;
419 CodeGenInstructionPattern(const CodeGenInstruction &I, StringRef Name) in CodeGenInstructionPattern()
436 const CodeGenInstruction &getInst() const { return I; } in getInst()
442 const CodeGenInstruction &I;

12