Home
last modified time | relevance | path

Searched refs:InstructionTemplate (Results 1 – 17 of 17) sorted by relevance

/external/llvm-project/llvm/tools/llvm-exegesis/lib/
DCodeTemplate.cpp18 InstructionTemplate::InstructionTemplate(const Instruction *Instr) in InstructionTemplate() function in llvm::exegesis::InstructionTemplate
21 InstructionTemplate::InstructionTemplate(InstructionTemplate &&) = default;
23 InstructionTemplate &InstructionTemplate::
24 operator=(InstructionTemplate &&) = default;
26 InstructionTemplate::InstructionTemplate(const InstructionTemplate &) = default;
28 InstructionTemplate &InstructionTemplate::
29 operator=(const InstructionTemplate &) = default;
31 unsigned InstructionTemplate::getOpcode() const { in getOpcode()
35 MCOperand &InstructionTemplate::getValueFor(const Variable &Var) { in getValueFor()
39 const MCOperand &InstructionTemplate::getValueFor(const Variable &Var) const { in getValueFor()
[all …]
DCodeTemplate.h25 struct InstructionTemplate { struct
26 InstructionTemplate(const Instruction *Instr);
28 InstructionTemplate(const InstructionTemplate &); // default
29 InstructionTemplate &operator=(const InstructionTemplate &); // default argument
30 InstructionTemplate(InstructionTemplate &&); // default
31 InstructionTemplate &operator=(InstructionTemplate &&); // default argument
131 std::vector<InstructionTemplate> Instructions;
DSnippetGenerator.h37 generateSelfAliasingCodeTemplates(InstructionTemplate Variant);
41 generateUnconstrainedCodeTemplates(const InstructionTemplate &Variant,
63 Error generateConfigurations(const InstructionTemplate &Variant,
69 const std::vector<InstructionTemplate> &Snippet) const;
78 generateCodeTemplates(InstructionTemplate Variant,
97 InstructionTemplate &DefIB, InstructionTemplate &UseIB);
103 InstructionTemplate &IT);
DParallelSnippetGenerator.cpp95 std::vector<InstructionTemplate> &Instructions) const { in instantiateMemoryOperands()
102 for (InstructionTemplate &IT : Instructions) { in instantiateMemoryOperands()
108 InstructionTemplate IT = Instructions[I % OriginalInstructionsSize]; in instantiateMemoryOperands()
117 static std::vector<InstructionTemplate> generateSnippetUsingStaticRenaming( in generateSnippetUsingStaticRenaming()
118 const LLVMState &State, const InstructionTemplate &IT, in generateSnippetUsingStaticRenaming()
121 std::vector<InstructionTemplate> Instructions; in generateSnippetUsingStaticRenaming()
135 InstructionTemplate TmpIT = IT; in generateSnippetUsingStaticRenaming()
159 InstructionTemplate Variant, const BitVector &ForbiddenRegisters) const { in generateCodeTemplates()
DSnippetGenerator.cpp42 const InstructionTemplate &Variant, std::vector<BenchmarkCode> &Benchmarks, in generateConfigurations()
78 for (InstructionTemplate &IT : CT.Instructions) { in generateConfigurations()
101 const std::vector<InstructionTemplate> &Instructions) const { in computeRegisterInitialValues()
108 for (const InstructionTemplate &IT : Instructions) { in computeRegisterInitialValues()
143 generateSelfAliasingCodeTemplates(InstructionTemplate Variant) { in generateSelfAliasingCodeTemplates()
164 generateUnconstrainedCodeTemplates(const InstructionTemplate &Variant, in generateUnconstrainedCodeTemplates()
193 InstructionTemplate &IB) { in setRegisterOperandValue()
217 InstructionTemplate &DefIB, InstructionTemplate &UseIB) { in setRandomAliasing()
263 InstructionTemplate &IT) { in randomizeUnsetVariables()
DParallelSnippetGenerator.h28 generateCodeTemplates(InstructionTemplate Variant,
59 std::vector<InstructionTemplate> &SnippetTemplate) const;
DSerialSnippetGenerator.cpp90 InstructionTemplate Variant, in appendCodeTemplates()
139 InstructionTemplate ThisIT(Variant); in appendCodeTemplates()
140 InstructionTemplate OtherIT(OtherInstr); in appendCodeTemplates()
163 InstructionTemplate Variant, const BitVector &ForbiddenRegisters) const { in generateCodeTemplates()
DTarget.h88 virtual void fillMemoryOperands(InstructionTemplate &IT, unsigned Reg, in fillMemoryOperands()
138 virtual std::vector<InstructionTemplate>
DSerialSnippetGenerator.h30 generateCodeTemplates(InstructionTemplate Variant,
/external/llvm-project/llvm/unittests/tools/llvm-exegesis/X86/
DSnippetGeneratorTest.cpp87 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
110 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
132 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
175 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
196 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
234 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
255 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
313 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
350 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
379 InstructionTemplate getInstructionTemplate(unsigned Opcode) { in getInstructionTemplate()
[all …]
DTargetTest.cpp363 InstructionTemplate IT(&I); in TEST_F()
376 InstructionTemplate IT(&I); in TEST_F()
/external/llvm-project/llvm/unittests/tools/llvm-exegesis/PowerPC/
DSnippetGeneratorTest.cpp71 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
101 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
127 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
/external/llvm-project/llvm/tools/llvm-exegesis/lib/PowerPC/
DTarget.cpp17 static void setMemOp(InstructionTemplate &IT, int OpIdx, in setMemOp()
38 void fillMemoryOperands(InstructionTemplate &IT, unsigned Reg,
73 void ExegesisPowerPCTarget::fillMemoryOperands(InstructionTemplate &IT, in fillMemoryOperands()
/external/llvm-project/llvm/tools/llvm-exegesis/lib/Mips/
DTarget.cpp42 static void setMemOp(InstructionTemplate &IT, int OpIdx, in setMemOp()
59 void fillMemoryOperands(InstructionTemplate &IT, unsigned Reg,
137 void ExegesisMipsTarget::fillMemoryOperands(InstructionTemplate &IT, in fillMemoryOperands()
/external/llvm-project/llvm/tools/llvm-exegesis/lib/X86/
DTarget.cpp220 static void setMemOp(InstructionTemplate &IT, int OpIdx, in setMemOp()
258 InstructionTemplate IT(&Instr); in generateLEATemplatesCommon()
299 generateCodeTemplates(InstructionTemplate Variant,
306 InstructionTemplate Variant, const BitVector &ForbiddenRegisters) const { in generateCodeTemplates()
358 generateCodeTemplates(InstructionTemplate Variant,
366 InstructionTemplate Variant, const BitVector &ForbiddenRegisters) const { in generateCodeTemplates()
680 void fillMemoryOperands(InstructionTemplate &IT, unsigned Reg,
702 std::vector<InstructionTemplate>
796 void ExegesisX86Target::fillMemoryOperands(InstructionTemplate &IT, in fillMemoryOperands()
876 std::vector<InstructionTemplate> ExegesisX86Target::generateInstructionVariants( in generateInstructionVariants()
[all …]
/external/llvm-project/llvm/unittests/tools/llvm-exegesis/Mips/
DSnippetGeneratorTest.cpp71 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
119 const InstructionTemplate &IT = CT.Instructions[0]; in TEST_F()
/external/llvm-project/llvm/tools/llvm-exegesis/
Dllvm-exegesis.cpp261 const std::vector<InstructionTemplate> InstructionVariants = in generateSnippets()
274 for (const InstructionTemplate &Variant : InstructionVariants) { in generateSnippets()