From ddf78cc594ae390a8bfff95555dc285c1bbd28f5 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 10 Aug 2008 12:16:57 +0200 Subject: Modularise the compiler. --- MLKLLVMCompiler.h | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'MLKLLVMCompiler.h') diff --git a/MLKLLVMCompiler.h b/MLKLLVMCompiler.h index 7b3569d..8ade89c 100644 --- a/MLKLLVMCompiler.h +++ b/MLKLLVMCompiler.h @@ -16,21 +16,33 @@ * along with this program. If not, see . */ +#import "MLKForm.h" #import "MLKLexicalContext.h" +#import #import -/* #ifdef __cplusplus #include #include using namespace llvm; #endif -*/ -@interface MLKLLVMCompiler --(id) compile:(id)object +@interface MLKLLVMCompiler : NSObject ++(void) initialize; + ++(id) compile:(id)object inContext:(MLKLexicalContext *)context; --(void) processTopLevelForm:(id)object; ++(void) processTopLevelForm:(id)object; + +#ifdef __cplusplus ++(Value *) processForm:(MLKForm *)form + inBlock:(BasicBlock **)block; +#endif +@end + + +@interface MLKForm (MLKLLVMCompilation) +-(Value *) processForLLVMInBlock:(BasicBlock **)block; @end -- cgit v1.2.3