Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 46 lines (34 sloc) 0.675 kB
c0f2af5 @lindquist Added IrTypeFunction and IrTypeDelegate and eliminated IrDType. This …
lindquist authored
1 #ifndef __LDC_IR_IRTYPEFUNCTION_H__
2 #define __LDC_IR_IRTYPEFUNCTION_H__
3
4 #include "ir/irtype.h"
5
7a24e12 @klickverbot Cleanup: Remove unused code in backend, silence some warnings.
klickverbot authored
6 struct IrFuncTy;
c0f2af5 @lindquist Added IrTypeFunction and IrTypeDelegate and eliminated IrDType. This …
lindquist authored
7
8 ///
9 class IrTypeFunction : public IrType
10 {
11 public:
12 ///
13 IrTypeFunction(Type* dt);
14
15 ///
16 IrTypeFunction* isFunction() { return this; }
17
18 ///
629f139 @AlexeyProkhin WIP: port to llvm 3.0
AlexeyProkhin authored
19 llvm::Type* buildType();
c0f2af5 @lindquist Added IrTypeFunction and IrTypeDelegate and eliminated IrDType. This …
lindquist authored
20
21 IrFuncTy* fty() { return irfty; }
22
23 protected:
629f139 @AlexeyProkhin WIP: port to llvm 3.0
AlexeyProkhin authored
24 llvm::Type* func2llvm(Type* dt);
c0f2af5 @lindquist Added IrTypeFunction and IrTypeDelegate and eliminated IrDType. This …
lindquist authored
25 ///
26 IrFuncTy* irfty;
27 };
28
29 ///
30 class IrTypeDelegate : public IrType
31 {
32 public:
33 ///
34 IrTypeDelegate(Type* dt);
35
36 ///
37 IrTypeDelegate* isDelegate() { return this; }
38
39 ///
629f139 @AlexeyProkhin WIP: port to llvm 3.0
AlexeyProkhin authored
40 llvm::Type* buildType();
41 protected:
42 llvm::Type* delegate2llvm(Type* dt);
c0f2af5 @lindquist Added IrTypeFunction and IrTypeDelegate and eliminated IrDType. This …
lindquist authored
43 };
44
45 #endif
Something went wrong with that request. Please try again.