LLVM: lib/Transforms/Utils/DXILUpgrade.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

14

15using namespace llvm;

16

17#define DEBUG_TYPE "dxil-upgrade"

18

20 NamedMDNode *ValVer = M.getNamedMetadata("dx.valver");

21 if (!ValVer)

22 return false;

23

28 dbgs() << "DXIL: validation version: " << X << "." << Y << "\n";

29 });

30

33 return true;

34}

35

38

41

44

47 return PA;

48}

This file contains the declarations for the subclasses of Constant, which represent the different fla...

static bool handleValVerMetadata(Module &M)

Definition DXILUpgrade.cpp:19

Module.h This file contains the declarations for the Module class.

static TableGen::Emitter::Opt Y("gen-skeleton-entry", EmitSkeleton, "Generate example skeleton entry")

static TableGen::Emitter::OptClass< SkeletonEmitter > X("gen-skeleton-class", "Generate example skeleton class")

This templated class represents "all analyses that operate over " (e....

PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)

Definition DXILUpgrade.cpp:36

A Module instance is used to store all the information related to an LLVM module.

void dropAllReferences()

Remove all uses and clear node vector.

LLVM_ABI void eraseFromParent()

Drop all references and remove the node from parent module.

LLVM_ABI MDNode * getOperand(unsigned i) const

A set of analyses that are preserved following a run of a transformation pass.

static PreservedAnalyses all()

Construct a special preserved set that preserves all passes.

PreservedAnalyses & preserveSet()

Mark an analysis set as preserved.

PreservedAnalyses & preserve()

Mark an analysis as preserved.

std::enable_if_t< detail::IsValidPointer< X, Y >::value, X * > extract(Y &&MD)

Extract a Value from Metadata.

This is an optimization pass for GlobalISel generic memory operations.

InnerAnalysisManagerProxy< FunctionAnalysisManager, Module > FunctionAnalysisManagerModuleProxy

Provide the FunctionAnalysisManager to Module proxy.

LLVM_ABI raw_ostream & dbgs()

dbgs() - This returns a reference to a raw_ostream for debugging messages.

AnalysisManager< Module > ModuleAnalysisManager

Convenience typedef for the Module analysis manager.