Home
last modified time | relevance | path

Searched refs:InstrMeta (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/tools/llvm-cfi-verify/
DFileAnalysis.cpp116 const auto *InstrMeta = Analysis.getInstruction(0xDEADBEEF); in TEST_F() local
117 EXPECT_NE(nullptr, InstrMeta); in TEST_F()
118 EXPECT_EQ(0xDEADBEEF, InstrMeta->VMAddress); in TEST_F()
119 EXPECT_EQ(1u, InstrMeta->InstructionSize); in TEST_F()
120 EXPECT_TRUE(InstrMeta->Valid); in TEST_F()
122 const auto *NextInstrMeta = Analysis.getNextInstructionSequential(*InstrMeta); in TEST_F()
123 EXPECT_EQ(nullptr, Analysis.getPrevInstructionSequential(*InstrMeta)); in TEST_F()
124 const auto *PrevInstrMeta = InstrMeta; in TEST_F()
127 InstrMeta = Analysis.getInstruction(0xDEADBEEF + 1); in TEST_F()
128 EXPECT_NE(nullptr, InstrMeta); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cfi-verify/lib/
DFileAnalysis.cpp119 FileAnalysis::getPrevInstructionSequential(const Instr &InstrMeta) const { in getPrevInstructionSequential()
121 Instructions.find(InstrMeta.VMAddress); in getPrevInstructionSequential()
132 FileAnalysis::getNextInstructionSequential(const Instr &InstrMeta) const { in getNextInstructionSequential()
134 Instructions.find(InstrMeta.VMAddress); in getNextInstructionSequential()
144 bool FileAnalysis::usesRegisterOperand(const Instr &InstrMeta) const { in usesRegisterOperand()
145 for (const auto &Operand : InstrMeta.Instruction) { in usesRegisterOperand()
166 bool FileAnalysis::isCFITrap(const Instr &InstrMeta) const { in isCFITrap()
167 const auto &InstrDesc = MII->get(InstrMeta.Instruction.getOpcode()); in isCFITrap()
171 bool FileAnalysis::canFallThrough(const Instr &InstrMeta) const { in canFallThrough()
172 if (!InstrMeta.Valid) in canFallThrough()
[all …]
DFileAnalysis.h107 const Instr *getPrevInstructionSequential(const Instr &InstrMeta) const;
108 const Instr *getNextInstructionSequential(const Instr &InstrMeta) const;
111 bool isCFITrap(const Instr &InstrMeta) const;
117 bool canFallThrough(const Instr &InstrMeta) const;
126 const Instr *getDefiniteNextInstruction(const Instr &InstrMeta) const;
132 getDirectControlFlowXRefs(const Instr &InstrMeta) const;
135 bool usesRegisterOperand(const Instr &InstrMeta) const;
163 void printInstruction(const Instr &InstrMeta, raw_ostream &OS) const;
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cfi-verify/
Dllvm-cfi-verify.cpp88 const Instr &InstrMeta, in printInstructionInformation() argument
91 outs() << "Instruction: " << format_hex(InstrMeta.VMAddress, 2) << " (" in printInstructionInformation()
93 Analysis.printInstruction(InstrMeta, outs()); in printInstructionInformation()
135 const auto &InstrMeta = Analysis.getInstructionOrDie(Address); in printIndirectCFInstructions() local
144 printInstructionInformation(Analysis, InstrMeta, Graph, ProtectionStatus); in printIndirectCFInstructions()