-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLLVMTypeUtils.h
55 lines (38 loc) · 1.52 KB
/
LLVMTypeUtils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*=====================================================================
LLVMTypeUtils.h
-------------------
Copyright Glare Technologies Limited 2018 -
Generated at Wed Oct 20 15:22:37 +1300 2010
=====================================================================*/
#pragma once
#ifdef _MSC_VER // If compiling with Visual C++
#pragma warning(push, 0) // Disable warnings
#endif
#include <llvm/IR/IRBuilder.h>
#ifdef _MSC_VER
#pragma warning(pop) // Re-enable warnings
#endif
#include "wnt_Type.h"
namespace llvm { class Function; class FunctionType; class Type; class LLVMContext; class Twine; class Module; }
class EmitLLVMCodeParams;
namespace Winter
{
/*=====================================================================
LLVMTypeUtils
-------------------
=====================================================================*/
namespace LLVMTypeUtils
{
llvm::Type* pointerType(llvm::Type& type);
llvm::Type* pointerType(llvm::Type* type);
llvm::Type* voidPtrType(llvm::LLVMContext& context);
llvm::Type* getBaseCapturedVarStructType(llvm::Module& module);
llvm::Type* getPtrToBaseCapturedVarStructType(llvm::Module& module);
llvm::StructType* getStructureTypeForName(const std::string& name, llvm::Module& module);
llvm::FunctionType* llvmFunctionType(const std::vector<TypeVRef>& arg_types,
bool captured_var_struct_ptr_arg,
TypeVRef return_type,
llvm::Module& module
);
}; // end namespace LLVMTypeUtils
}; // end namespace Winter