LLVM  10.0.0svn
Macros | Functions | Variables
ForceFunctionAttrs.cpp File Reference
#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"
Include dependency graph for ForceFunctionAttrs.cpp:

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."))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "forceattrs"

Definition at line 18 of file ForceFunctionAttrs.cpp.

Function Documentation

◆ addForcedAttributes()

static void addForcedAttributes ( Function F)
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( ForceFunctionAttrsLegacyPass  ,
"forceattrs"  ,
"Force set function attributes ,
false  ,
false   
)

Definition at line 123 of file ForceFunctionAttrs.cpp.

◆ parseAttrKind()

static Attribute::AttrKind parseAttrKind ( StringRef  Kind)
static

Variable Documentation

◆ ForceAttributes

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."))
static