|
LLVM 22.0.0git
|
#include "AMDGPU.h"#include "Utils/AMDGPUBaseInfo.h"#include "llvm/Analysis/ConstantFolding.h"#include "llvm/Analysis/ValueTracking.h"#include "llvm/CodeGen/Passes.h"#include "llvm/IR/Constants.h"#include "llvm/IR/Function.h"#include "llvm/IR/InstIterator.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicsAMDGPU.h"#include "llvm/IR/MDBuilder.h"#include "llvm/IR/PatternMatch.h"#include "llvm/Pass.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "amdgpu-lower-kernel-attributes" |
Functions | |
| static void | annotateGridSizeLoadWithRangeMD (LoadInst *Load, uint32_t MaxNumGroups) |
| static bool | processUse (CallInst *CI, bool IsV5OrAbove) |
| INITIALIZE_PASS_BEGIN (AMDGPULowerKernelAttributes, DEBUG_TYPE, "AMDGPU Kernel Attributes", false, false) INITIALIZE_PASS_END(AMDGPULowerKernelAttributes | |
Variables | |
| DEBUG_TYPE | |
| AMDGPU Kernel | Attributes |
| AMDGPU Kernel | false |
| #define DEBUG_TYPE "amdgpu-lower-kernel-attributes" |
Definition at line 29 of file AMDGPULowerKernelAttributes.cpp.
Definition at line 86 of file AMDGPULowerKernelAttributes.cpp.
References llvm::MDBuilder::createRange(), and Range.
Referenced by processUse().
| INITIALIZE_PASS_BEGIN | ( | AMDGPULowerKernelAttributes | , |
| DEBUG_TYPE | , | ||
| "AMDGPU Kernel Attributes" | , | ||
| false | , | ||
| false | ) |
References DEBUG_TYPE.
Definition at line 100 of file AMDGPULowerKernelAttributes.cpp.
References annotateGridSizeLoadWithRangeMD(), llvm::ConstantFoldIntegerCast(), DL, llvm::dyn_cast(), llvm::mdconst::extract(), F, llvm::AMDGPU::getIntegerVecAttribute(), llvm::Constant::getNullValue(), llvm::ilist_detail::node_parent_access< NodeTy, ParentTy >::getParent(), llvm::GetPointerBaseWithConstantOffset(), llvm::ConstantInt::getTrue(), llvm::Value::getType(), I, llvm::CmpInst::ICMP_ULT, llvm::PatternMatch::m_Intrinsic(), llvm::PatternMatch::m_Mul(), llvm::PatternMatch::m_Specific(), llvm::PatternMatch::m_SpecificICmp(), llvm::PatternMatch::m_Sub(), llvm::PatternMatch::m_UMin(), llvm::PatternMatch::match(), llvm::none_of(), llvm::Offset, llvm::Value::replaceAllUsesWith(), llvm::UMin, llvm::Value::users(), and X.
Referenced by llvm::rdf::DeadCodeElimination::collect(), and llvm::AMDGPULowerKernelAttributesPass::run().
| AMDGPU Kernel Attributes |
Definition at line 371 of file AMDGPULowerKernelAttributes.cpp.
| DEBUG_TYPE |
Definition at line 370 of file AMDGPULowerKernelAttributes.cpp.
| AMDGPU Kernel false |
Definition at line 371 of file AMDGPULowerKernelAttributes.cpp.