LLVM  6.0.0svn
Macros | Functions | Variables
AMDGPUAnnotateUniformValues.cpp File Reference

This pass adds amdgpu.uniform metadata to IR values so this information can be used during instruction selection. More...

#include "AMDGPU.h"
#include "AMDGPUIntrinsicInfo.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/Analysis/DivergenceAnalysis.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/MemoryDependenceAnalysis.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for AMDGPUAnnotateUniformValues.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "amdgpu-annotate-uniform"
 

Functions

 INITIALIZE_PASS_BEGIN (AMDGPUAnnotateUniformValues, DEBUG_TYPE, "Add AMDGPU uniform metadata", false, false) INITIALIZE_PASS_END(AMDGPUAnnotateUniformValues
 
static void setUniformMetadata (Instruction *I)
 
static void setNoClobberMetadata (Instruction *I)
 
static void DFS (BasicBlock *Root, SetVector< BasicBlock *> &Set)
 

Variables

 DEBUG_TYPE
 
Add AMDGPU uniform metadata
 
Add AMDGPU uniform false
 

Detailed Description

This pass adds amdgpu.uniform metadata to IR values so this information can be used during instruction selection.

Definition in file AMDGPUAnnotateUniformValues.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "amdgpu-annotate-uniform"

Definition at line 27 of file AMDGPUAnnotateUniformValues.cpp.

Function Documentation

◆ DFS()

static void DFS ( BasicBlock Root,
SetVector< BasicBlock *> &  Set 
)
static

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( AMDGPUAnnotateUniformValues  ,
DEBUG_TYPE  ,
"Add AMDGPU uniform metadata ,
false  ,
false   
)

◆ setNoClobberMetadata()

static void setNoClobberMetadata ( Instruction I)
static

◆ setUniformMetadata()

static void setUniformMetadata ( Instruction I)
static

Definition at line 75 of file AMDGPUAnnotateUniformValues.cpp.

References llvm::MDNode::get(), and I.

Referenced by DFS().

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 70 of file AMDGPUAnnotateUniformValues.cpp.

◆ false

Add AMDGPU uniform false

Definition at line 70 of file AMDGPUAnnotateUniformValues.cpp.

◆ metadata

Add AMDGPU uniform metadata

Definition at line 70 of file AMDGPUAnnotateUniformValues.cpp.