diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-14 03:36:21 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-14 03:36:21 +0000 |
| commit | febb9e4ac239a15ad8c46575643b53ca66e3f4ac (patch) | |
| tree | 59436aa9897e44cc5f1cea1442755063ad4e4c20 /include/cps/CodeGen.h | |
| parent | 2147449f4d6f37b4624990ff26bce58ebf3cfb4b (diff) | |
feat(codegen): support C scalar arithmetic and input output
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/CodeGen.h')
| -rw-r--r-- | include/cps/CodeGen.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index 5043417..4363126 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -70,6 +70,9 @@ class CodeGen { llvm::Value *convertNumericValue(llvm::Value *Val, const TypeInfo *Source, const TypeInfo *Target); llvm::Value *emitCast(CastExprAST *Cast); + llvm::Value *emitCBinaryOp(BinaryExprAST *Bin, const TypeInfo *Left, const TypeInfo *Right); + void emitCOutput(llvm::Value *Val, const TypeInfo *Info, bool AppendNewline); + void emitCInput(const SymbolInfo *Symbol, const TypeInfo *Info); // TYPE-system helpers (Designator.cc). void runTypePrePass(const std::vector<std::unique_ptr<StmtAST>> &Statements); |
