LLVM
8.0.1
|
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/LegacyDivergenceAnalysis.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"
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(), llvm::SPII::Load, and llvm::predecessors().
Referenced by llvm::ScheduleDAGTopologicalSort::AddPred(), llvm::LoopInfoBase< BasicBlock, Loop >::analyze(), llvm::LoopVectorizationCostModel::calculateRegisterUsage(), llvm::SchedDFSResult::compute(), llvm::concatenateVectors(), llvm::Loop::dumpVerbose(), GetGlobalTypeString(), llvm::DOTGraphTraits< ScheduleDAGMI * >::getNodeAttributes(), llvm::DOTGraphTraits< ScheduleDAGMI * >::getNodeLabel(), getOnlyLiveSuccessor(), INITIALIZE_PASS(), llvm::ScheduleDAGTopologicalSort::IsReachable(), llvm::VPRecipeBuilder::tryToCreateRecipe(), llvm::UnrollAndJamLoop(), 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(), and I.
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.