|
LLVM
7.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 70 of file ForceFunctionAttrs.cpp.
References llvm::Function::addFnAttr(), llvm::dbgs(), ForceAttributes, llvm::Value::getName(), llvm::Function::hasFnAttribute(), Kind, LLVM_DEBUG, 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 122 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, and llvm::Attribute::None.
Referenced by addForcedAttributes(), getAttrFromCode(), and readTriple().
|
static |
Referenced by addForcedAttributes(), and llvm::ForceFunctionAttrsPass::run().
1.8.13