concept and design: added transpiler section
Some checks are pending
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, 1.6) (push) Waiting to run
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, pre) (push) Waiting to run
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, 1.10) (push) Waiting to run

This commit is contained in:
2025-04-06 13:59:14 +02:00
parent 9e1094ac43
commit 20fcbab4ca
7 changed files with 72 additions and 18 deletions

View File

@ -22,9 +22,9 @@ NOTE: All 64-Bit values will be converted to 32-Bit. Be aware of the lost precis
"
function expr_to_postfix(expr::Expr)::PostfixType
postfix = PostfixType()
operator = get_operator(expr.args[1])
@inbounds operator = get_operator(expr.args[1])
for j in 2:length(expr.args)
@inbounds for j in 2:length(expr.args)
arg = expr.args[j]
if typeof(arg) === Expr

View File

@ -198,8 +198,7 @@ function generate_calculation_code(expression::ExpressionProcessing.PostfixType,
exprId64Reg = Utils.get_next_free_register(regManager, "rd")
println(codeBuffer, "mov.u64 $exprId64Reg, $expressionIndex;")
for i in eachindex(expression)
token = expression[i]
for token in expression
if token.Type == FLOAT32
push!(operands, reinterpret(Float32, token.Value))