23#define DEBUG_TYPE "annotation2metadata"
29 "annotation-remarks"))
32 auto *
Annotations = M.getGlobalVariable(
"llvm.global.annotations");
34 if (!
C ||
C->getNumOperands() != 1)
41 for (
auto &
Op :
C->operands()) {
45 if (!OpC || OpC->getNumOperands() != 4)
59 I.addAnnotationMetadata(StrData->getAsCString());
Expand Atomic instructions
This file contains the declarations for the subclasses of Constant, which represent the different fla...
Module.h This file contains the declarations for the Module class.
Annotations lets you mark points and ranges inside source code, for tests:
A Module instance is used to store all the information related to an LLVM module.
A set of analyses that are preserved following a run of a transformation pass.
static PreservedAnalyses none()
Convenience factory function for the empty preserved set.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
auto dyn_cast_or_null(const Y &Val)
DWARFExpression::Operation Op
decltype(auto) cast(const From &Val)
cast<X> - Return the argument parameter cast to the specified type.
AnalysisManager< Module > ModuleAnalysisManager
Convenience typedef for the Module analysis manager.