OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LLVMFunctionAttributesUtil.cpp File Reference
+ Include dependency graph for LLVMFunctionAttributesUtil.cpp:

Go to the source code of this file.

Functions

void mark_function_always_inline (llvm::Function *func)
 
void mark_function_never_inline (llvm::Function *func)
 
void clear_function_attributes (llvm::Function *func)
 

Function Documentation

void clear_function_attributes ( llvm::Function *  func)

Definition at line 30 of file LLVMFunctionAttributesUtil.cpp.

Referenced by mark_function_never_inline().

30  {
31  llvm::AttributeList no_attributes;
32  func->setAttributes(no_attributes);
33 }

+ Here is the caller graph for this function:

void mark_function_always_inline ( llvm::Function *  func)

Definition at line 19 of file LLVMFunctionAttributesUtil.cpp.

Referenced by GroupByAndAggregate::codegenPerfectHashFunction(), and anonymous_namespace{ResultSetReductionJIT.cpp}::create_llvm_function().

19  {
20  func->addAttribute(llvm::AttributeList::AttrIndex::FunctionIndex,
21  llvm::Attribute::AlwaysInline);
22 }

+ Here is the caller graph for this function:

void mark_function_never_inline ( llvm::Function *  func)

Definition at line 24 of file LLVMFunctionAttributesUtil.cpp.

References clear_function_attributes().

24  {
26  func->addAttribute(llvm::AttributeList::AttrIndex::FunctionIndex,
27  llvm::Attribute::NoInline);
28 }
void clear_function_attributes(llvm::Function *func)

+ Here is the call graph for this function: