|
LLVM 24.0.0git
|
#include "DXILWriterPass.h"#include "DXILBitcodeWriter.h"#include "DirectX.h"#include "MCTargetDesc/DirectXContainerObjectWriter.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/StringRef.h"#include "llvm/Analysis/ModuleSummaryAnalysis.h"#include "llvm/IR/Analysis.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DebugInfo.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/GlobalVariable.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Intrinsics.h"#include "llvm/IR/LLVMContext.h"#include "llvm/IR/Module.h"#include "llvm/IR/PassManager.h"#include "llvm/InitializePasses.h"#include "llvm/Pass.h"#include "llvm/Support/Alignment.h"#include "llvm/Support/CommandLine.h"#include "llvm/Transforms/Utils/Cloning.h"#include "llvm/Transforms/Utils/ModuleUtils.h"Go to the source code of this file.
Functions | |
| static std::string | writeModule (Module &M, bool HasDebugInfo, bool WriteDebug) |
| static GlobalVariable * | createSectionGlobal (Module &M, StringRef Data, StringRef GlobalName, StringRef SectionName) |
| static bool | runEmbedderOnModule (Module &M) |
| INITIALIZE_PASS_BEGIN (DXILWriterLegacy, "dxil-writer", "Write Bitcode", false, true) INITIALIZE_PASS_END(DXILWriterLegacy | |
Variables | |
| dxil | writer |
| dxil Write | Bitcode |
| dxil Write | false |
|
static |
Definition at line 224 of file DXILWriterPass.cpp.
References llvm::arrayRefFromStringRef(), llvm::Data, llvm::ConstantDataArray::get(), llvm::Value::getType(), and llvm::GlobalValue::PrivateLinkage.
Referenced by runEmbedderOnModule().
| INITIALIZE_PASS_BEGIN | ( | DXILWriterLegacy | , |
| "dxil-writer" | , | ||
| "Write Bitcode" | , | ||
| false | , | ||
| true | ) |
References INITIALIZE_PASS_DEPENDENCY.
Definition at line 237 of file DXILWriterPass.cpp.
References llvm::appendToCompilerUsed(), llvm::CloneModule(), createSectionGlobal(), llvm::dxil::EmbedDebug, llvm::SmallVectorImpl< T >::emplace_back(), llvm::dxil::PdbDebugPath, llvm::reportFatalUsageError(), llvm::dxil::SlimDebug, and llvm::writeModule().
Referenced by llvm::DXILEmbedderPass::run().
|
static |
Definition at line 176 of file DXILWriterPass.cpp.
References assert(), llvm::Data, llvm::NamedMDNode::eraseFromParent(), llvm::MDString::get(), llvm::NamedMDNode::getName(), llvm::make_early_inc_range(), llvm::dxil::SourceInDebugModule, llvm::StringRef::starts_with(), llvm::StripDebugInfo(), and llvm::dxil::WriteDXILToFile().
| dxil Write Bitcode |
Definition at line 295 of file DXILWriterPass.cpp.
| dxil Write false |
Definition at line 295 of file DXILWriterPass.cpp.
| dxil writer |
Definition at line 295 of file DXILWriterPass.cpp.