|
LLVM
4.0.0
|
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/InstVisitor.h"#include "llvm/IR/IRBuilder.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"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 |
This pass adds amdgpu.uniform metadata to IR values so this information can be used during instruction selection.
Definition in file AMDGPUAnnotateUniformValues.cpp.
| #define DEBUG_TYPE "amdgpu-annotate-uniform" |
Definition at line 27 of file AMDGPUAnnotateUniformValues.cpp.
|
static |
Definition at line 81 of file AMDGPUAnnotateUniformValues.cpp.
References I, llvm::SetVector< T, Vector, Set >::insert(), and llvm::predecessors().
Referenced by llvm::LoopInfoBase< N, M >::analyze(), llvm::SchedDFSResult::compute(), llvm::DOTGraphTraits< ScheduleDAGMI * >::getNodeAttributes(), llvm::DOTGraphTraits< ScheduleDAGMI * >::getNodeLabel(), and llvm::UnrollLoop().
| INITIALIZE_PASS_BEGIN | ( | AMDGPUAnnotateUniformValues | , |
| DEBUG_TYPE | , | ||
| "Add AMDGPU uniform metadata" | , | ||
| false | , | ||
| false | |||
| ) |
|
static |
Definition at line 77 of file AMDGPUAnnotateUniformValues.cpp.
References llvm::MDNode::get(), llvm::Value::getContext(), and llvm::Instruction::setMetadata().
|
static |
Definition at line 74 of file AMDGPUAnnotateUniformValues.cpp.
References llvm::MDNode::get().
| DEBUG_TYPE |
Definition at line 69 of file AMDGPUAnnotateUniformValues.cpp.
| Add AMDGPU uniform false |
Definition at line 69 of file AMDGPUAnnotateUniformValues.cpp.
| Add AMDGPU uniform metadata |
Definition at line 69 of file AMDGPUAnnotateUniformValues.cpp.
1.8.6