Jlm
LlvmModuleConversion.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014 2015 Nico Reißmann <nico.reissmann@gmail.com>
3  * See COPYING for terms of redistribution.
4  */
5 
6 #ifndef JLM_LLVM_FRONTEND_LLVMMODULECONVERSION_HPP
7 #define JLM_LLVM_FRONTEND_LLVMMODULECONVERSION_HPP
8 
10 
11 #include <llvm/IR/Attributes.h>
12 
13 #include <memory>
14 
15 namespace llvm
16 {
17 class Module;
18 }
19 
20 namespace jlm::llvm
21 {
22 
23 class InterProceduralGraphModule;
24 class TypeConverter;
25 
27 ConvertAttributeKind(const ::llvm::Attribute::AttrKind & kind);
28 
29 AttributeList
31  const ::llvm::AttributeList & attributeList,
32  size_t numParameters,
33  TypeConverter & typeConverter);
34 
35 std::unique_ptr<InterProceduralGraphModule>
36 ConvertLlvmModule(::llvm::Module & module);
37 
38 }
39 
40 #endif
Global memory state passed between functions.
std::unique_ptr< InterProceduralGraphModule > ConvertLlvmModule(::llvm::Module &llvmModule)
Attribute::kind ConvertAttributeKind(const ::llvm::Attribute::AttrKind &kind)
AttributeList convertAttributeList(const ::llvm::AttributeList &attributeList, const size_t numParameters, TypeConverter &typeConverter)