LLVM 24.0.0git
RelLookupTableConverter.cpp File Reference

Go to the source code of this file.

Classes

struct  LookupTableInfo
struct  LookupTableUse
struct  AccessPattern

Functions

static bool analyzeLookupTableUse (AccessPattern &Pattern, LookupTableUse &UseInfo, User *Usr)
static bool shouldConvertToRelLookupTable (LookupTableInfo &Info, SmallVectorImpl< LookupTableUse > &Uses, Module &M, GlobalVariable &GV)
static GlobalVariable * createRelLookupTable (const LookupTableInfo &Info, GlobalVariable &LookupTable)
static void convertToRelLookupTable (const LookupTableInfo &Info, ArrayRef< LookupTableUse > Uses, GlobalVariable &LookupTable)
static bool convertToRelativeLookupTables (Module &M, function_ref< TargetTransformInfo &(Function &)> GetTTI)

Function Documentation

◆ analyzeLookupTableUse()

◆ convertToRelativeLookupTables()

◆ convertToRelLookupTable()

◆ createRelLookupTable()

◆ shouldConvertToRelLookupTable()