Skip to content

Translate user-library types created in operations' user code to C types #28

Description

@wcmjunior

The compiler still does not translate to C those user-library types created inside the body of operations. An example of code is the following:

Array<Float32> arrayRetMap = array.par().map(Float32.class, new Map<Float32, Int32>() {
    @Override
    public Float32 function(Int32 element) {
        Float32 ret = new Float32();
        ret.value = element.value * 1.5f + valor;
        return ret;
    }
});

This code will be translated to the following C user function:

static float map1(int element) {
    Float32 ret = new Float32();
    ret.value = element * 1.5f + valor;
    return ret;
}

But should be translated to:

static float map1(int element) {
    float ret;
    ret = element * 1.5f + valor;
    return ret;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions