LLVM  4.0.0
Macros | Functions
SplitModule.cpp File Reference
#include "llvm/Transforms/Utils/SplitModule.h"
#include "llvm/ADT/EquivalenceClasses.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalAlias.h"
#include "llvm/IR/GlobalObject.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/MD5.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/Utils/Cloning.h"
#include <queue>
Include dependency graph for SplitModule.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "split-module"
 

Functions

static void addNonConstUser (ClusterMapType &GVtoClusterMap, const GlobalValue *GV, const User *U)
 
static void addAllGlobalValueUsers (ClusterMapType &GVtoClusterMap, const GlobalValue *GV, const Value *V)
 
static void findPartitions (Module *M, ClusterIDMapType &ClusterIDMap, unsigned N)
 
static void externalize (GlobalValue *GV)
 
static bool isInPartition (const GlobalValue *GV, unsigned I, unsigned N)
 

Macro Definition Documentation

#define DEBUG_TYPE   "split-module"

Definition at line 16 of file SplitModule.cpp.

Function Documentation

static void addAllGlobalValueUsers ( ClusterMapType &  GVtoClusterMap,
const GlobalValue GV,
const Value V 
)
static
static void addNonConstUser ( ClusterMapType &  GVtoClusterMap,
const GlobalValue GV,
const User U 
)
static

Definition at line 43 of file SplitModule.cpp.

References assert(), F, I, and llvm_unreachable.

Referenced by addAllGlobalValueUsers().

static void externalize ( GlobalValue GV)
static
static void findPartitions ( Module M,
ClusterIDMapType &  ClusterIDMap,
unsigned  N 
)
static
static bool isInPartition ( const GlobalValue GV,
unsigned  I,
unsigned  N 
)
static