LLVM 20.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 | |||
) |
Definition at line 100 of file AMDGPULowerKernelAttributes.cpp.
References annotateGridSizeLoadWithRangeMD(), llvm::ConstantFoldIntegerCast(), DL, 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::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 370 of file AMDGPULowerKernelAttributes.cpp.
Referenced by llvm::DWARFDebugNames::Abbrev::dump(), llvm::ModuleSummaryIndex::exportToDot(), llvm::PseudoProbeSDNode::getAttributes(), llvm::DIObjCProperty::getAttributes(), llvm::object::ELFObjectFile< ELFT >::getBuildAttributes(), llvm::MDNodeKeyImpl< DIObjCProperty >::getHashValue(), llvm::MDNodeKeyImpl< DIObjCProperty >::isKeyOf(), llvm::MDNodeKeyImpl< DIObjCProperty >::MDNodeKeyImpl(), ParseLine(), parseMetadata(), llvm::logicalview::LVScopeFunction::printExtra(), llvm::logicalview::LVSymbol::printExtra(), llvm::logicalview::LVTypeImport::printExtra(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), llvm::sampleprof::SampleProfileReaderText::readImpl(), and llvm::object::ELFObjectFileBase::setARMSubArch().
DEBUG_TYPE |
Definition at line 369 of file AMDGPULowerKernelAttributes.cpp.
AMDGPU Kernel false |
Definition at line 370 of file AMDGPULowerKernelAttributes.cpp.