Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/unittests/tools/llvm-cfi-verify/
H A DFileAnalysis.cpp118 EXPECT_NE(nullptr, InstrMeta); in TEST_F()
121 EXPECT_TRUE(InstrMeta->Valid); in TEST_F()
129 EXPECT_NE(nullptr, InstrMeta); in TEST_F()
133 EXPECT_TRUE(InstrMeta->Valid); in TEST_F()
137 PrevInstrMeta = InstrMeta; in TEST_F()
141 EXPECT_NE(nullptr, InstrMeta); in TEST_F()
145 EXPECT_TRUE(InstrMeta->Valid); in TEST_F()
149 PrevInstrMeta = InstrMeta; in TEST_F()
153 EXPECT_NE(nullptr, InstrMeta); in TEST_F()
161 PrevInstrMeta = InstrMeta; in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-cfi-verify/lib/
H A DFileAnalysis.cpp179 if (!MIA->evaluateBranch(InstrMeta.Instruction, InstrMeta.VMAddress, in willTrapOnCFIViolation()
186 if (!InstrMeta.Valid) in canFallThrough()
189 if (isCFITrap(InstrMeta)) in canFallThrough()
201 if (!InstrMeta.Valid) in getDefiniteNextInstruction()
204 if (isCFITrap(InstrMeta)) in getDefiniteNextInstruction()
214 if (!MIA->evaluateBranch(InstrMeta.Instruction, InstrMeta.VMAddress, in getDefiniteNextInstruction()
221 getInstruction(InstrMeta.VMAddress + InstrMeta.InstructionSize); in getDefiniteNextInstruction()
479 Instr InstrMeta; in parseSectionContents() local
492 InstrMeta.VMAddress = VMAddress; in parseSectionContents()
494 InstrMeta.Valid = ValidInstruction; in parseSectionContents()
[all …]
H A DFileAnalysis.h107 const Instr *getPrevInstructionSequential(const Instr &InstrMeta) const;
108 const Instr *getNextInstructionSequential(const Instr &InstrMeta) const;
111 bool isCFITrap(const Instr &InstrMeta) const;
115 bool willTrapOnCFIViolation(const Instr &InstrMeta) const;
121 bool canFallThrough(const Instr &InstrMeta) const;
130 const Instr *getDefiniteNextInstruction(const Instr &InstrMeta) const;
136 getDirectControlFlowXRefs(const Instr &InstrMeta) const;
139 bool usesRegisterOperand(const Instr &InstrMeta) const;
168 void printInstruction(const Instr &InstrMeta, raw_ostream &OS) const;
/llvm-project-15.0.7/llvm/tools/llvm-cfi-verify/
H A Dllvm-cfi-verify.cpp92 const Instr &InstrMeta, in printInstructionInformation() argument
95 outs() << "Instruction: " << format_hex(InstrMeta.VMAddress, 2) << " (" in printInstructionInformation()
97 Analysis.printInstruction(InstrMeta, outs()); in printInstructionInformation()
140 const auto &InstrMeta = Analysis.getInstructionOrDie(Address.Address); in printIndirectCFInstructions() local
149 printInstructionInformation(Analysis, InstrMeta, Graph, ProtectionStatus); in printIndirectCFInstructions()