Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/
H A DX86FoldTablesEmitter.cpp80 static bool isExplicitAlign(const CodeGenInstruction *Inst) { in isExplicitAlign()
86 static bool isExplicitUnalign(const CodeGenInstruction *Inst) { in isExplicitUnalign()
98 const CodeGenInstruction *RegInst;
99 const CodeGenInstruction *MemInst;
108 X86FoldTableEntry(const CodeGenInstruction *RegInst, in X86FoldTableEntry()
109 const CodeGenInstruction *MemInst) in X86FoldTableEntry()
162 void updateTables(const CodeGenInstruction *RegInstr,
163 const CodeGenInstruction *MemInstr,
168 void addEntryWithFlags(FoldTable &Table, const CodeGenInstruction *RegInstr,
169 const CodeGenInstruction *MemInstr,
[all …]
H A DX86EVEX2VEXTablesEmitter.cpp27 std::vector<const CodeGenInstruction *> EVEXInsts;
30 std::map<uint64_t, std::vector<const CodeGenInstruction *>> VEXInsts;
32 typedef std::pair<const CodeGenInstruction *, const CodeGenInstruction *> Entry;
105 const CodeGenInstruction *EVEXInst;
108 IsMatch(const CodeGenInstruction *EVEXInst) : EVEXInst(EVEXInst) {} in IsMatch()
110 bool operator()(const CodeGenInstruction *VEXInst) { in operator ()()
191 auto getPredicates = [&](const CodeGenInstruction *Inst) { in run()
205 ArrayRef<const CodeGenInstruction *> NumberedInstructions = in run()
208 for (const CodeGenInstruction *Inst : NumberedInstructions) { in run()
229 for (const CodeGenInstruction *EVEXInst : EVEXInsts) { in run()
[all …]
H A DInstrInfoEmitter.cpp76 void emitRecord(const CodeGenInstruction &Inst, unsigned Num,
83 ArrayRef<const CodeGenInstruction *> NumberedInstructions);
85 ArrayRef<const CodeGenInstruction *> NumberedInstructions,
90 ArrayRef<const CodeGenInstruction*> NumberedInstructions);
94 ArrayRef<const CodeGenInstruction *> NumberedInstructions);
97 ArrayRef<const CodeGenInstruction *> NumberedInstructions);
101 std::vector<std::string> GetOperandInfo(const CodeGenInstruction &Inst);
119 InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) { in GetOperandInfo()
215 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in EmitOperandInfo()
236 ArrayRef<const CodeGenInstruction *> NumberedInstructions, in initOperandMapData()
[all …]
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()
155 CodeGenInstruction Insn(Operator); in evaluateExpansion()
191 CodeGenInstruction SourceInsn(Rec); in evaluateExpansion()
236 CodeGenInstruction &Source = Expansion.Source; in emitLoweringEmitter()
237 CodeGenInstruction &Dest = Expansion.Dest; in emitLoweringEmitter()
H A DCodeGenTarget.h52 std::unique_ptr<CodeGenInstruction>> Instructions;
64 mutable std::vector<const CodeGenInstruction*> InstrsByEnum;
145 DenseMap<const Record*, std::unique_ptr<CodeGenInstruction>> &
152 CodeGenInstruction &getInstruction(const Record *InstRec) const { in getInstruction()
175 ArrayRef<const CodeGenInstruction *> getInstructionsByEnumValue() const { in getInstructionsByEnumValue()
181 typedef ArrayRef<const CodeGenInstruction *>::const_iterator inst_iterator;
H A DRISCVCompressInstEmitter.cpp94 CodeGenInstruction Source; // The source instruction definition.
95 CodeGenInstruction Dest; // The destination instruction to transform to.
105 CompressPat(CodeGenInstruction &S, CodeGenInstruction &D, in CompressPat()
116 void addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Inst,
132 CodeGenInstruction &DestInst);
191 Record *Rec, DagInit *Dag, CodeGenInstruction &Inst, in addDagOperandMapping()
257 static bool verifyDagOpCount(CodeGenInstruction &Inst, DagInit *Dag, in verifyDagOpCount()
346 StringMap<unsigned> &SourceOperands, CodeGenInstruction &DestInst) { in createInstOperandMapping()
423 CodeGenInstruction SourceInst(Operator); in evaluateCompressPat()
436 CodeGenInstruction DestInst(DestOperator); in evaluateCompressPat()
[all …]
H A DAsmWriterInst.h23 class CodeGenInstruction; variable
83 const CodeGenInstruction *CGI;
86 AsmWriterInst(const CodeGenInstruction &CGI, unsigned CGIIndex,
H A DCodeEmitterGen.cpp58 raw_ostream &o, ArrayRef<const CodeGenInstruction *> NumberedInstructions,
85 CodeGenInstruction &CGI = Target.getInstruction(R); in AddCodeToMergeInOperand()
299 CodeGenInstruction &CGI = Target.getInstruction(R); in getInstructionCaseForEncoding()
348 raw_ostream &o, ArrayRef<const CodeGenInstruction *> NumberedInstructions, in emitInstructionBaseValues()
357 for (const CodeGenInstruction *CGI : NumberedInstructions) { in emitInstructionBaseValues()
396 ArrayRef<const CodeGenInstruction*> NumberedInstructions = in run()
403 for (const CodeGenInstruction *CGI : NumberedInstructions) { in run()
549 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in run()
610 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in run()
H A DCodeBeadsGen.cpp50 ArrayRef<const CodeGenInstruction *> NumberedInstructions = in run()
61 for (const CodeGenInstruction *CGI : NumberedInstructions) { in run()
80 for (const CodeGenInstruction *CGI : NumberedInstructions) { in run()
H A DCodeGenTarget.cpp269 for (const CodeGenInstruction *Inst : getInstructionsByEnumValue()) { in getInstNamespace()
443 Instructions[Insts[i]] = std::make_unique<CodeGenInstruction>(Insts[i]); in ReadInstructions()
446 static const CodeGenInstruction *
449 std::unique_ptr<CodeGenInstruction>> &Insts, in GetInstByName()
473 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum()
483 const CodeGenInstruction *CGI = I.second.get(); in ComputeInstrsByEnum()
496 [](const CodeGenInstruction *Rec1, const CodeGenInstruction *Rec2) { in ComputeInstrsByEnum()
H A DCodeGenInstruction.h218 class CodeGenInstruction {
296 CodeGenInstruction(Record *R);
342 CodeGenInstruction *ResultInst;
H A DWebAssemblyDisassemblerEmitter.cpp25 const ArrayRef<const CodeGenInstruction *> &NumberedInstructions) { in emitWebAssemblyDisassemblerTables()
29 std::map<unsigned, std::pair<unsigned, const CodeGenInstruction *>>> in emitWebAssemblyDisassemblerTables()
H A DWebAssemblyDisassemblerEmitter.h25 const ArrayRef<const CodeGenInstruction *> &NumberedInstructions);
H A DInstrDocsEmitter.cpp69 for (const CodeGenInstruction *II : Target.getInstructionsByEnumValue()) { in EmitInstrDocs()
88 CodeGenInstruction::FlattenAsmStringVariants(II->AsmString, VarNum); in EmitInstrDocs()
H A DX86RecognizableInstr.h343 const CodeGenInstruction &insn,
355 const CodeGenInstruction &insn,
H A DCodeGenInstruction.cpp365 CodeGenInstruction::CodeGenInstruction(Record *R) in CodeGenInstruction() function in CodeGenInstruction
452 MVT::SimpleValueType CodeGenInstruction::
469 std::string CodeGenInstruction::
514 bool CodeGenInstruction::isOperandImpl(unsigned i, in isOperandImpl()
H A DDisassemblerEmitter.cpp113 ArrayRef<const CodeGenInstruction*> numberedInstructions = in EmitDisassembler()
H A DCodeGenSchedule.h30 class CodeGenInstruction; variable
276 bool isUnsupported(const CodeGenInstruction &Inst) const;
553 unsigned getSchedClassIdx(const CodeGenInstruction &Inst) const;
H A DCMakeLists.txt15 CodeGenInstruction.cpp
/netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/GlobalISel/
H A DGIMatchDagPredicate.h17 class CodeGenInstruction; variable
80 const CodeGenInstruction &Instr;
84 const CodeGenInstruction &Instr);
90 const CodeGenInstruction *getInstr() const { return &Instr; } in getInstr()
100 SmallVector<const CodeGenInstruction *, 4> Instrs;
105 void addOpcode(const CodeGenInstruction *Instr) { Instrs.push_back(Instr); } in addOpcode()
111 const SmallVectorImpl<const CodeGenInstruction *> &getInstrs() const { in getInstrs()
H A DGIMatchDagInstr.h64 CodeGenInstruction *OpcodeAnnotation = 0;
102 void setOpcodeAnnotation(CodeGenInstruction *I) { OpcodeAnnotation = I; } in setOpcodeAnnotation()
103 CodeGenInstruction *getOpcodeAnnotation() const { return OpcodeAnnotation; } in getOpcodeAnnotation()
H A DGIMatchDagPredicate.cpp27 GIMatchDagContext &Ctx, StringRef Name, const CodeGenInstruction &Instr) in GIMatchDagOpcodePredicate()
44 for (const CodeGenInstruction *Instr : Instrs) { in printDescription()
H A DGIMatchDagOperands.h23 class CodeGenInstruction; variable
122 const GIMatchDagOperandList &makeOperandList(const CodeGenInstruction &I);
H A DGIMatchTree.cpp415 SmallVector<const CodeGenInstruction *, 1> OpcodesForThisPredicate; in repartition()
434 const CodeGenInstruction *Expected = OpcodeP->getInstr(); in repartition()
460 for (const CodeGenInstruction *Expected : OpcodesForThisPredicate) { in repartition()
535 const CodeGenInstruction *CGI = PartitionToInstr[PartitionIdx]; in applyForPartition()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/gn/secondary/llvm/utils/TableGen/
H A DBUILD.gn19 "CodeGenInstruction.cpp",

12