1 //===-- InferFunctionAttrs.h - Infer implicit function attributes ---------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// Interfaces for passes which infer implicit function attributes from the
12 /// name and signature of function declarations.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_TRANSFORMS_IPO_INFERFUNCTIONATTRS_H
17 #define LLVM_TRANSFORMS_IPO_INFERFUNCTIONATTRS_H
19 #include "llvm/IR/Module.h"
20 #include "llvm/IR/PassManager.h"
24 /// A pass which infers function attributes from the names and signatures of
25 /// function declarations in a module.
26 class InferFunctionAttrsPass {
28 static StringRef name() { return "InferFunctionAttrsPass"; }
29 PreservedAnalyses run(Module &M, AnalysisManager<Module> *AM);
32 /// Create a legacy pass manager instance of a pass to infer function
34 Pass *createInferFunctionAttrsLegacyPass();
38 #endif // LLVM_TRANSFORMS_IPO_INFERFUNCTIONATTRS_H