|
LLVM
4.0.0
|
#include "llvm/Transforms/IPO/ForceFunctionAttrs.h"#include "llvm/ADT/StringSwitch.h"#include "llvm/IR/Function.h"#include "llvm/IR/LLVMContext.h"#include "llvm/IR/Module.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "forceattrs" |
Functions | |
| static Attribute::AttrKind | parseAttrKind (StringRef Kind) |
| static void | addForcedAttributes (Function &F) |
| If F has any forced attributes given on the command line, add them. More... | |
| INITIALIZE_PASS (ForceFunctionAttrsLegacyPass,"forceattrs","Force set function attributes", false, false) Pass *llvm | |
Variables | |
| static cl::list< std::string > | ForceAttributes ("force-attribute", cl::Hidden, cl::desc("Add an attribute to a function. This should be a ""pair of 'function-name:attribute-name', for ""example -force-attribute=foo:noinline. This ""option can be specified multiple times.")) |
| #define DEBUG_TYPE "forceattrs" |
Definition at line 19 of file ForceFunctionAttrs.cpp.
|
static |
If F has any forced attributes given on the command line, add them.
Definition at line 65 of file ForceFunctionAttrs.cpp.
References llvm::Function::addFnAttr(), llvm::dbgs(), DEBUG, ForceAttributes, llvm::Value::getName(), llvm::Function::hasFnAttribute(), Kind, llvm::Attribute::None, parseAttrKind(), and llvm::StringRef::split().
Referenced by llvm::ForceFunctionAttrsPass::run().
| INITIALIZE_PASS | ( | ForceFunctionAttrsLegacyPass | , |
| "forceattrs" | , | ||
| "Force set function attributes" | , | ||
| false | , | ||
| false | |||
| ) |
Definition at line 117 of file ForceFunctionAttrs.cpp.
|
static |
Definition at line 28 of file ForceFunctionAttrs.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::CallingConv::Cold, llvm::MCID::Convergent, llvm::StringSwitch< T, R >::Default(), llvm::ISD::JumpTable, Kind, llvm::Attribute::None, and AMDGPU::RuntimeMD::KernelArg::ReadOnly.
Referenced by addForcedAttributes().
|
static |
Referenced by addForcedAttributes(), and llvm::ForceFunctionAttrsPass::run().
1.8.6