OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LLVMFunctionAttributesUtil.h File Reference
#include <llvm/IR/Attributes.h>
#include <llvm/IR/Function.h>
+ Include dependency graph for LLVMFunctionAttributesUtil.h:
+ This graph shows which files directly or indirectly include this file:

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 28 of file LLVMFunctionAttributesUtil.cpp.

Referenced by mark_function_never_inline().

28  {
29  llvm::AttributeList no_attributes;
30  func->setAttributes(no_attributes);
31 }

+ 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->addFnAttr(llvm::Attribute::AlwaysInline);
21 }

+ Here is the caller graph for this function:

void mark_function_never_inline ( llvm::Function *  func)

Definition at line 23 of file LLVMFunctionAttributesUtil.cpp.

References clear_function_attributes().

Referenced by CodeGenerator::generateNativeGPUCode().

23  {
25  func->addFnAttr(llvm::Attribute::NoInline);
26 }
void clear_function_attributes(llvm::Function *func)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: