class TestComparator
Declaration
class TestComparator : public FunctionComparator { /* full declaration omitted */ };
Description
A class for testing the FunctionComparator API. The main purpose is to test if the required protected functions are accessible from a derived class of FunctionComparator.
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:45
Inherits from: FunctionComparator
Member Variables
Inherited from FunctionComparator:
Method Overview
- public TestComparator(const llvm::Function * F1, const llvm::Function * F2, llvm::GlobalNumberState * GN)
- public int testCmpBasicBlocks(llvm::BasicBlock * BBL, llvm::BasicBlock * BBR)
- public int testCmpConstants(const llvm::Constant * L, const llvm::Constant * R)
- public int testCmpGlobalValues(llvm::GlobalValue * L, llvm::GlobalValue * R)
- public int testCmpOperations(const llvm::Instruction * L, const llvm::Instruction * R, bool & needToCmpOperands)
- public int testCmpPrimitives()
- public int testCmpTypes(llvm::Type * TyL, llvm::Type * TyR)
- public int testCmpValues(const llvm::Value * L, const llvm::Value * R)
- public int testCompare()
- public int testCompareSignature()
- public bool testFunctionAccess(const llvm::Function * F1, const llvm::Function * F2)
Inherited from FunctionComparator:
- protected beginCompare
- protected cmpAPFloats
- protected cmpAPInts
- protected cmpBasicBlocks
- protected cmpConstants
- protected cmpGlobalValues
- protected cmpMem
- protected cmpNumbers
- protected cmpOperations
- protected cmpTypes
- protected cmpValues
- public compare
- protected compareSignature
- public functionHash
Methods
¶TestComparator(const llvm::Function* F1,
const llvm::Function* F2,
llvm::GlobalNumberState* GN)
TestComparator(const llvm::Function* F1,
const llvm::Function* F2,
llvm::GlobalNumberState* GN)
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:47
Parameters
- const llvm::Function* F1
- const llvm::Function* F2
- llvm::GlobalNumberState* GN
¶int testCmpBasicBlocks(llvm::BasicBlock* BBL,
llvm::BasicBlock* BBR)
int testCmpBasicBlocks(llvm::BasicBlock* BBL,
llvm::BasicBlock* BBR)
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:66
Parameters
- llvm::BasicBlock* BBL
- llvm::BasicBlock* BBR
¶int testCmpConstants(const llvm::Constant* L,
const llvm::Constant* R)
int testCmpConstants(const llvm::Constant* L,
const llvm::Constant* R)
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:71
Parameters
- const llvm::Constant* L
- const llvm::Constant* R
¶int testCmpGlobalValues(llvm::GlobalValue* L,
llvm::GlobalValue* R)
int testCmpGlobalValues(llvm::GlobalValue* L,
llvm::GlobalValue* R)
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:76
Parameters
¶int testCmpOperations(const llvm::Instruction* L,
const llvm::Instruction* R,
bool& needToCmpOperands)
int testCmpOperations(const llvm::Instruction* L,
const llvm::Instruction* R,
bool& needToCmpOperands)
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:86
Parameters
- const llvm::Instruction* L
- const llvm::Instruction* R
- bool& needToCmpOperands
¶int testCmpPrimitives()
int testCmpPrimitives()
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:97
¶int testCmpTypes(llvm::Type* TyL, llvm::Type* TyR)
int testCmpTypes(llvm::Type* TyL, llvm::Type* TyR)
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:92
Parameters
- llvm::Type* TyL
- llvm::Type* TyR
¶int testCmpValues(const llvm::Value* L,
const llvm::Value* R)
int testCmpValues(const llvm::Value* L,
const llvm::Value* R)
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:81
Parameters
- const llvm::Value* L
- const llvm::Value* R
¶int testCompare()
int testCompare()
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:57
¶int testCompareSignature()
int testCompareSignature()
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:61
¶bool testFunctionAccess(const llvm::Function* F1,
const llvm::Function* F2)
bool testFunctionAccess(const llvm::Function* F1,
const llvm::Function* F2)
Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:52
Parameters
- const llvm::Function* F1
- const llvm::Function* F2