Skip to content

Commit bd7d99d

Browse files
committed
Fix Vec type; fix Cythonization order
1 parent 158d1d8 commit bd7d99d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

codon/cir/module.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ types::Type *Module::getIntNType(unsigned int len, bool sign) {
318318
}
319319

320320
types::Type *Module::getVectorType(unsigned count, types::Type *base) {
321-
return getOrRealizeType("Vec", {base, count});
321+
return getOrRealizeType(ast::getMangledClass("std.experimental.simd", "Vec"),
322+
{base, count});
322323
}
323324

324325
types::Type *Module::getTupleType(std::vector<types::Type *> args) {

codon/parser/visitors/translate/translate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ ir::Func *TranslateVisitor::apply(Cache *cache, Stmt *stmts) {
4747
cache->codegenCtx->bases = {main};
4848
cache->codegenCtx->series = {block};
4949

50-
TranslateVisitor(cache->codegenCtx).translateStmts(stmts);
5150
cache->populatePythonModule();
51+
TranslateVisitor(cache->codegenCtx).translateStmts(stmts);
5252
return main;
5353
}
5454

0 commit comments

Comments
 (0)