diff options
Diffstat (limited to 'MLKLLVMCompiler.h')
-rw-r--r-- | MLKLLVMCompiler.h | 22 |
1 files changed, 17 insertions, 5 deletions
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 <http://www.gnu.org/licenses/>. */ +#import "MLKForm.h" #import "MLKLexicalContext.h" +#import <Foundation/NSObject.h> #import <Foundation/NSString.h> -/* #ifdef __cplusplus #include <Value.h> #include <BasicBlock.h> 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 |