LLVM  8.0.1
Macros | Functions | Variables
AMDGPUUnifyDivergentExitNodes.cpp File Reference
#include "AMDGPU.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Analysis/LegacyDivergenceAnalysis.h"
#include "llvm/Analysis/PostDominators.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/Type.h"
#include "llvm/Pass.h"
#include "llvm/Support/Casting.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils.h"
Include dependency graph for AMDGPUUnifyDivergentExitNodes.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "amdgpu-unify-divergent-exit-nodes"
 

Functions

 INITIALIZE_PASS_BEGIN (AMDGPUUnifyDivergentExitNodes, DEBUG_TYPE, "Unify divergent function exit nodes", false, false) INITIALIZE_PASS_END(AMDGPUUnifyDivergentExitNodes
 
static bool isUniformlyReached (const LegacyDivergenceAnalysis &DA, BasicBlock &BB)
 
static BasicBlockunifyReturnBlockSet (Function &F, ArrayRef< BasicBlock *> ReturningBlocks, const TargetTransformInfo &TTI, StringRef Name)
 

Variables

 DEBUG_TYPE
 
Unify divergent function exit nodes
 
Unify divergent function exit false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "amdgpu-unify-divergent-exit-nodes"

Definition at line 47 of file AMDGPUUnifyDivergentExitNodes.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( AMDGPUUnifyDivergentExitNodes  ,
DEBUG_TYPE  ,
"Unify divergent function exit nodes ,
false  ,
false   
)

◆ isUniformlyReached()

static bool isUniformlyReached ( const LegacyDivergenceAnalysis DA,
BasicBlock BB 
)
static

◆ unifyReturnBlockSet()

static BasicBlock* unifyReturnBlockSet ( Function F,
ArrayRef< BasicBlock *>  ReturningBlocks,
const TargetTransformInfo TTI,
StringRef  Name 
)
static

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 74 of file AMDGPUUnifyDivergentExitNodes.cpp.

◆ false

Unify divergent function exit false

Definition at line 74 of file AMDGPUUnifyDivergentExitNodes.cpp.

◆ nodes

Unify divergent function exit nodes