aboutsummaryrefslogtreecommitdiff
path: root/include/cps/CodeGen.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-16 09:46:18 +0000
committer_ov4 <ov4@ov4.org>2026-10-16 09:46:18 +0000
commit522742e9df7fc5ac596ce4aa53d41b31e4f6a030 (patch)
treea00d9513f02995b418b442d9fb9396ea7e601ad3 /include/cps/CodeGen.h
parent533d95d4b54ff2139468d38a7162e5ca3a40a7f6 (diff)
refactor(codegen): separate type checks from designator access
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/CodeGen.h')
-rw-r--r--include/cps/CodeGen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h
index 4363126..72b96c6 100644
--- a/include/cps/CodeGen.h
+++ b/include/cps/CodeGen.h
@@ -74,7 +74,7 @@ class CodeGen {
void emitCOutput(llvm::Value *Val, const TypeInfo *Info, bool AppendNewline);
void emitCInput(const SymbolInfo *Symbol, const TypeInfo *Info);
- // TYPE-system helpers (Designator.cc).
+ // TYPE-system registration (Designator.cc) and operators (TypeCheckGen.cc).
void runTypePrePass(const std::vector<std::unique_ptr<StmtAST>> &Statements);
llvm::Value *emitUserKindBinaryOp(BinaryExprAST *Bin, const TypeInfo *LT, const TypeInfo *RT);
@@ -120,7 +120,7 @@ public:
// Name-level admission gate for Enum/Record/Pointer plus the existing
// representation coercion for builtin targets. The ONLY door through
// which assignments, BYVAL args, RETURN values and file/builtin operands
- // may produce a typed value. (Designator.cc)
+ // may produce a typed value. (TypeCheckGen.cc)
llvm::Value *emitCoercedExpr(ExprAST *E, const TypeInfo *TargetInfo);
const TypeInfo *resolveType(const std::string &TypeName) const;