LLVM 20.0.0git
|
#include "DXILResourceAccess.h"
#include "DirectX.h"
#include "llvm/Analysis/DXILResource.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/IntrinsicsDirectX.h"
#include "llvm/InitializePasses.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "dxil-resource-access" |
Functions | |
static void | replaceTypedBufferAccess (IntrinsicInst *II, dxil::ResourceTypeInfo &RTI) |
static bool | transformResourcePointers (Function &F, DXILResourceTypeMap &DRTM) |
INITIALIZE_PASS_BEGIN (DXILResourceAccessLegacy, DEBUG_TYPE, "DXIL Resource Access", false, false) INITIALIZE_PASS_END(DXILResourceAccessLegacy | |
Variables | |
DEBUG_TYPE | |
DXIL Resource | Access |
DXIL Resource | false |
#define DEBUG_TYPE "dxil-resource-access" |
Definition at line 20 of file DXILResourceAccess.cpp.
INITIALIZE_PASS_BEGIN | ( | DXILResourceAccessLegacy | , |
DEBUG_TYPE | , | ||
"DXIL Resource Access" | , | ||
false | , | ||
false | |||
) |
|
static |
Definition at line 24 of file DXILResourceAccess.cpp.
References Access, assert(), llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::IRBuilderBase::CreateExtractElement(), llvm::IRBuilderBase::CreateInsertElement(), llvm::IRBuilderBase::CreateIntrinsic(), DL, llvm::SmallVectorBase< Size_T >::empty(), GEP, llvm::IRBuilderBase::getInt32Ty(), llvm::Type::getScalarType(), llvm::IRBuilderBase::getVoidTy(), II, Index, llvm_unreachable, llvm::SmallVectorTemplateBase< T, bool >::pop_back(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::Value::replaceAllUsesWith(), llvm::reverse(), Scaled, and llvm::APInt::udiv().
Referenced by transformResourcePointers().
|
static |
Definition at line 122 of file DXILResourceAccess.cpp.
References llvm::SmallVectorImpl< T >::emplace_back(), F, I, II, and replaceTypedBufferAccess().
Referenced by llvm::DXILResourceAccess::run().
DXIL Resource Access |
Definition at line 188 of file DXILResourceAccess.cpp.
Referenced by llvm::logicalview::LVElement::accessibilityString(), llvm::dwarf::AccessibilityString(), llvm::AA::PointerInfo::State::forallInterferingAccesses(), foreachMemoryAccess(), llvm::logicalview::LVElement::getAccessibilityCode(), getFD(), llvm::MemoryDepChecker::getInstructionsForAccess(), llvm::AliasSet::isMod(), llvm::AliasSet::isRef(), mayLoopAccessLocation(), llvm::codeview::MemberAttributes::MemberAttributes(), llvm::pdb::operator<<(), replaceTypedBufferAccess(), and llvm::logicalview::LVElement::setAccessibilityCode().
DEBUG_TYPE |
Definition at line 187 of file DXILResourceAccess.cpp.
DXIL Resource false |
Definition at line 188 of file DXILResourceAccess.cpp.