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
If we have %8 = OpCopyObject %type %7, we could create a new variable with type pointer to %type, store %7 to the new variable and load the new variable to %8. The following is an example.
This transformation protobuf would consist of copy_object_result_id, fresh_variable_id, variable_storage_class, variable_initializer_id.
The transformation is only applicable if the pointer type already exists. The pointer type cannot be a pointer to a pointer.
The fuzzer pass would look for OpCopyObject instructions and create and apply a transformation to add the required pointer type, if needed using FindOrCreatePointerType.
The transformation should add a synonym fact to the fact manager.
This will be similar to TransformationPushIdThroughVariable.
The text was updated successfully, but these errors were encountered:
Adds a transformation that replaces instruction OpCopyObject with
storing into a new variable and immediately loading this variable to
|result_id| of the original OpCopyObject instruction.
Fixes#3351.
dnovillo
pushed a commit
to dnovillo/SPIRV-Tools
that referenced
this issue
Aug 19, 2020
…sGroup#3567)
Adds a transformation that replaces instruction OpCopyObject with
storing into a new variable and immediately loading this variable to
|result_id| of the original OpCopyObject instruction.
FixesKhronosGroup#3351.
If we have
%8 = OpCopyObject %type %7
, we could create a new variable with typepointer to %type
, store%7
to the new variable and load the new variable to%8
. The following is an example.This transformation protobuf would consist of
copy_object_result_id
,fresh_variable_id
,variable_storage_class
,variable_initializer_id
.The transformation is only applicable if the pointer type already exists. The pointer type cannot be a pointer to a pointer.
The fuzzer pass would look for OpCopyObject instructions and create and apply a transformation to add the required pointer type, if needed using
FindOrCreatePointerType
.The transformation should add a synonym fact to the fact manager.
This will be similar to
TransformationPushIdThroughVariable
.The text was updated successfully, but these errors were encountered: