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
This adds an `emitc.member` and `emitc.member_of_ptr` operation for the
corresponding member access operators. Furthermore, `emitc.assign` is
adjusted to be used with the member access operators.
// expected-error @+1 {{'emitc.assign' op requires first operand (<block argument> of type 'f32' at index: 1) to be a get_global, subscript or variable}}
238
+
// expected-error @+1 {{'emitc.assign' op requires first operand (<block argument> of type 'f32' at index: 1) to be a get_global, member, member of pointer, subscript or variable}}
239
239
emitc.assign%arg1 : f32to%arg2 : f32
240
240
return
241
241
}
@@ -450,3 +450,19 @@ func.func @use_global() {
450
450
%0 = emitc.get_global@myglobal : f32
451
451
return
452
452
}
453
+
454
+
// -----
455
+
456
+
func.func@member(%arg0:i32) {
457
+
// expected-error @+1 {{'emitc.member' op operand #0 must be EmitC opaque type, but got 'i32'}}
0 commit comments