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:

protected FnL
protected FnR

Method Overview

Inherited from FunctionComparator:

Methods

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)

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)

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)

Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:76

Parameters

llvm::GlobalValue* L
llvm::GlobalValue* R

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()

Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:97

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)

Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:81

Parameters

const llvm::Value* L
const llvm::Value* R

int testCompare()

Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:57

int testCompareSignature()

Declared at: llvm/unittests/Transforms/Utils/FunctionComparatorTest.cpp:61

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