LLVM 19.0.0git
Functions
RelLookupTableConverter.cpp File Reference
#include "llvm/Transforms/Utils/RelLookupTableConverter.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"

Go to the source code of this file.

Functions

static bool shouldConvertToRelLookupTable (Module &M, GlobalVariable &GV)
 
static GlobalVariablecreateRelLookupTable (Function &Func, GlobalVariable &LookupTable)
 
static void convertToRelLookupTable (GlobalVariable &LookupTable)
 
static bool convertToRelativeLookupTables (Module &M, function_ref< TargetTransformInfo &(Function &)> GetTTI)
 

Function Documentation

◆ convertToRelativeLookupTables()

static bool convertToRelativeLookupTables ( Module M,
function_ref< TargetTransformInfo &(Function &)>  GetTTI 
)
static

◆ convertToRelLookupTable()

static void convertToRelLookupTable ( GlobalVariable LookupTable)
static

◆ createRelLookupTable()

static GlobalVariable * createRelLookupTable ( Function Func,
GlobalVariable LookupTable 
)
static

◆ shouldConvertToRelLookupTable()

static bool shouldConvertToRelLookupTable ( Module M,
GlobalVariable GV 
)
static