Home
last modified time | relevance | path

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

123

/external/llvm-project/llvm/utils/TableGen/
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 …]
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;
86 const CodeGenInstruction *EVEXInst;
89 IsMatch(const CodeGenInstruction *EVEXInst) : EVEXInst(EVEXInst) {} in IsMatch()
91 bool operator()(const CodeGenInstruction *VEXInst) { in operator ()()
174 ArrayRef<const CodeGenInstruction *> NumberedInstructions = in run()
177 for (const CodeGenInstruction *Inst : NumberedInstructions) { in run()
198 for (const CodeGenInstruction *EVEXInst : EVEXInsts) { in run()
204 const CodeGenInstruction *VEXInst = nullptr; in run()
DInstrInfoEmitter.cpp74 void emitRecord(const CodeGenInstruction &Inst, unsigned Num,
81 ArrayRef<const CodeGenInstruction *> NumberedInstructions);
83 ArrayRef<const CodeGenInstruction *> NumberedInstructions,
88 ArrayRef<const CodeGenInstruction*> NumberedInstructions);
92 std::vector<std::string> GetOperandInfo(const CodeGenInstruction &Inst);
110 InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) { in GetOperandInfo()
207 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in EmitOperandInfo()
228 ArrayRef<const CodeGenInstruction *> NumberedInstructions, in initOperandMapData()
233 for (const CodeGenInstruction *Inst : NumberedInstructions) { in initOperandMapData()
264 ArrayRef<const CodeGenInstruction*> NumberedInstructions) { in emitOperandNameMappings()
[all …]
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()
150 CodeGenInstruction Insn(Operator); in evaluateExpansion()
186 CodeGenInstruction SourceInsn(Rec); in evaluateExpansion()
231 CodeGenInstruction &Source = Expansion.Source; in emitLoweringEmitter()
232 CodeGenInstruction &Dest = Expansion.Dest; in emitLoweringEmitter()
DCodeGenTarget.h52 std::unique_ptr<CodeGenInstruction>> Instructions;
64 mutable std::vector<const CodeGenInstruction*> InstrsByEnum;
144 DenseMap<const Record*, std::unique_ptr<CodeGenInstruction>> &
151 CodeGenInstruction &getInstruction(const Record *InstRec) const { in getInstruction()
174 ArrayRef<const CodeGenInstruction *> getInstructionsByEnumValue() const { in getInstructionsByEnumValue()
180 typedef ArrayRef<const CodeGenInstruction *>::const_iterator inst_iterator;
DAsmWriterInst.h23 class CodeGenInstruction; variable
83 const CodeGenInstruction *CGI;
86 AsmWriterInst(const CodeGenInstruction &CGI, unsigned CGIIndex,
DRISCVCompressInstEmitter.cpp94 CodeGenInstruction Source; // The source instruction definition.
95 CodeGenInstruction Dest; // The destination instruction to transform to.
104 CompressPat(CodeGenInstruction &S, CodeGenInstruction &D, in CompressPat()
115 void addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Inst,
131 CodeGenInstruction &DestInst);
191 Record *Rec, DagInit *Dag, CodeGenInstruction &Inst, in addDagOperandMapping()
257 static bool verifyDagOpCount(CodeGenInstruction &Inst, DagInit *Dag, in verifyDagOpCount()
350 StringMap<unsigned> &SourceOperands, CodeGenInstruction &DestInst) { in createInstOperandMapping()
427 CodeGenInstruction SourceInst(Operator); in evaluateCompressPat()
440 CodeGenInstruction DestInst(DestOperator); in evaluateCompressPat()
[all …]
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()
551 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in run()
612 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in run()
DWebAssemblyDisassemblerEmitter.cpp25 const ArrayRef<const CodeGenInstruction *> &NumberedInstructions) { in emitWebAssemblyDisassemblerTables()
29 std::map<unsigned, std::pair<unsigned, const CodeGenInstruction *>>> in emitWebAssemblyDisassemblerTables()
DCodeGenTarget.cpp271 for (const CodeGenInstruction *Inst : getInstructionsByEnumValue()) { in getInstNamespace()
447 Instructions[Insts[i]] = std::make_unique<CodeGenInstruction>(Insts[i]); in ReadInstructions()
450 static const CodeGenInstruction *
453 std::unique_ptr<CodeGenInstruction>> &Insts, in GetInstByName()
477 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum()
487 const CodeGenInstruction *CGI = I.second.get(); in ComputeInstrsByEnum()
500 [](const CodeGenInstruction *Rec1, const CodeGenInstruction *Rec2) { in ComputeInstrsByEnum()
DWebAssemblyDisassemblerEmitter.h25 const ArrayRef<const CodeGenInstruction *> &NumberedInstructions);
DCodeGenInstruction.h218 class CodeGenInstruction {
296 CodeGenInstruction(Record *R);
342 CodeGenInstruction *ResultInst;
DInstrDocsEmitter.cpp69 for (const CodeGenInstruction *II : Target.getInstructionsByEnumValue()) { in EmitInstrDocs()
88 CodeGenInstruction::FlattenAsmStringVariants(II->AsmString, VarNum); in EmitInstrDocs()
/external/llvm-project/llvm/utils/TableGen/GlobalISel/
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()
DGIMatchDagInstr.h64 CodeGenInstruction *OpcodeAnnotation = 0;
102 void setOpcodeAnnotation(CodeGenInstruction *I) { OpcodeAnnotation = I; } in setOpcodeAnnotation()
103 CodeGenInstruction *getOpcodeAnnotation() const { return OpcodeAnnotation; } in getOpcodeAnnotation()
DGIMatchDagPredicate.cpp27 GIMatchDagContext &Ctx, StringRef Name, const CodeGenInstruction &Instr) in GIMatchDagOpcodePredicate()
44 for (const CodeGenInstruction *Instr : Instrs) { in printDescription()
DGIMatchDagOperands.h23 class CodeGenInstruction; variable
122 const GIMatchDagOperandList &makeOperandList(const CodeGenInstruction &I);
/external/llvm/utils/TableGen/
DPseudoLoweringEmitter.cpp37 CodeGenInstruction Source; // The source pseudo instruction definition.
38 CodeGenInstruction Dest; // The destination instruction to lower to.
41 PseudoExpansion(CodeGenInstruction &s, CodeGenInstruction &d, in PseudoExpansion()
56 CodeGenInstruction &Insn,
74 addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Insn, in addDagOperandMapping()
140 CodeGenInstruction Insn(Operator); in evaluateExpansion()
168 CodeGenInstruction SourceInsn(Rec); in evaluateExpansion()
209 CodeGenInstruction &Source = Expansion.Source; in emitLoweringEmitter()
210 CodeGenInstruction &Dest = Expansion.Dest; in emitLoweringEmitter()
DCodeGenTarget.h69 std::unique_ptr<CodeGenInstruction>> Instructions;
79 mutable std::vector<const CodeGenInstruction*> InstrsByEnum;
148 DenseMap<const Record*, std::unique_ptr<CodeGenInstruction>> &
155 CodeGenInstruction &getInstruction(const Record *InstRec) const { in getInstruction()
164 ArrayRef<const CodeGenInstruction *>
170 typedef ArrayRef<const CodeGenInstruction *>::const_iterator inst_iterator;
DInstrInfoEmitter.cpp55 void emitRecord(const CodeGenInstruction &Inst, unsigned Num,
62 ArrayRef<const CodeGenInstruction *> NumberedInstructions,
67 ArrayRef<const CodeGenInstruction*> NumberedInstructions);
71 std::vector<std::string> GetOperandInfo(const CodeGenInstruction &Inst);
88 InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) { in GetOperandInfo()
180 for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) { in EmitOperandInfo()
201 ArrayRef<const CodeGenInstruction *> NumberedInstructions, in initOperandMapData()
207 for (const CodeGenInstruction *Inst : NumberedInstructions) { in initOperandMapData()
237 ArrayRef<const CodeGenInstruction*> NumberedInstructions) { in emitOperandNameMappings()
359 for (const CodeGenInstruction *II : Target.getInstructionsByEnumValue()) { in run()
[all …]
DAsmWriterInst.h24 class CodeGenInstruction; variable
82 const CodeGenInstruction *CGI;
85 AsmWriterInst(const CodeGenInstruction &CGI, unsigned CGIIndex,
DCodeGenTarget.cpp165 for (const CodeGenInstruction *Inst : getInstructionsByEnumValue()) { in getInstNamespace()
284 Instructions[Insts[i]] = llvm::make_unique<CodeGenInstruction>(Insts[i]); in ReadInstructions()
287 static const CodeGenInstruction *
290 std::unique_ptr<CodeGenInstruction>> &Insts, in GetInstByName()
309 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum()
317 const CodeGenInstruction *CGI = I.second.get(); in ComputeInstrsByEnum()
327 [](const CodeGenInstruction *Rec1, const CodeGenInstruction *Rec2) { in ComputeInstrsByEnum()
DCodeEmitterGen.cpp66 CodeGenInstruction &CGI = Target.getInstruction(R); in AddCodeToMergeInOperand()
190 CodeGenInstruction &CGI = Target.getInstruction(R); in getInstructionCase()
229 ArrayRef<const CodeGenInstruction*> NumberedInstructions = in run()
240 for (const CodeGenInstruction *CGI : NumberedInstructions) { in run()
DX86RecognizableInstr.h217 const CodeGenInstruction &insn,
229 const CodeGenInstruction &insn,
DCodeGenInstruction.h206 class CodeGenInstruction {
273 CodeGenInstruction(Record *R);
303 CodeGenInstruction *ResultInst;

123