LLVM 17.0.0git
Macros | Functions
ModuleUtils.cpp File Reference
#include "llvm/Transforms/Utils/ModuleUtils.h"
#include "llvm/Analysis/VectorUtils.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/xxhash.h"
Include dependency graph for ModuleUtils.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "moduleutils"
 

Functions

static void appendToGlobalArray (StringRef ArrayName, Module &M, Function *F, int Priority, Constant *Data)
 
static void collectUsedGlobals (GlobalVariable *GV, SmallSetVector< Constant *, 16 > &Init)
 
static void appendToUsedList (Module &M, StringRef Name, ArrayRef< GlobalValue * > Values)
 
static void removeFromUsedList (Module &M, StringRef Name, function_ref< bool(Constant *)> ShouldRemove)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "moduleutils"

Definition at line 24 of file ModuleUtils.cpp.

Function Documentation

◆ appendToGlobalArray()

static void appendToGlobalArray ( StringRef  ArrayName,
Module M,
Function F,
int  Priority,
Constant Data 
)
static

◆ appendToUsedList()

static void appendToUsedList ( Module M,
StringRef  Name,
ArrayRef< GlobalValue * >  Values 
)
static

◆ collectUsedGlobals()

static void collectUsedGlobals ( GlobalVariable GV,
SmallSetVector< Constant *, 16 > &  Init 
)
static

◆ removeFromUsedList()

static void removeFromUsedList ( Module M,
StringRef  Name,
function_ref< bool(Constant *)>  ShouldRemove 
)
static