You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
need to find a way to annotate operand-alias in operators/operations/instructions so that program analysis does not need to add specialized checks for each operators.
The text was updated successfully, but these errors were encountered:
The operator need an optional method to get which argument it aliases on output, and return a negative number if it doesn't alias any input argument. Until then, we can write a function to use a basic heuristic:
intget_alias_output(instruction_ref x)
{
// Nothing to aliasif(x->arguments.empty())
return -1;
// Assume functions that use an allocation as the last parameter is aliasedif(x->arguments.back()->op.name() == "hip::allocate")
return x->arguments.size() - 1;
return -1;
}
Then replace the function with a call to the operation class when it gets implemented.
need to find a way to annotate operand-alias in operators/operations/instructions so that program analysis does not need to add specialized checks for each operators.
The text was updated successfully, but these errors were encountered: