@@ -610,42 +610,44 @@ def CIR_DynamicCastInfoAttr : CIR_Attr<"DynamicCastInfo", "dyn_cast_info"> {
610610 let description = [{
611611 Provide ABI specific information about a dynamic cast operation.
612612
613- The `srcRtti ` and the `destRtti ` parameters give the RTTI of the source
613+ The `src_rtti ` and the `dest_rtti ` parameters give the RTTI of the source
614614 record type and the destination record type, respectively.
615615
616- The `runtimeFunc ` parameter gives the `__dynamic_cast` function which is
617- provided by the runtime. The `badCastFunc ` parameter gives the
616+ The `runtime_func ` parameter gives the `__dynamic_cast` function which is
617+ provided by the runtime. The `bad_cast_func ` parameter gives the
618618 `__cxa_bad_cast` function which is also provided by the runtime.
619619
620- The `offsetHint ` parameter gives the hint value that should be passed to the
621- `__dynamic_cast` runtime function.
620+ The `offset_hint ` parameter gives the hint value that should be passed to
621+ the `__dynamic_cast` runtime function.
622622 }];
623623
624624 let parameters = (ins
625- CIR_GlobalViewAttr:$srcRtti ,
626- CIR_GlobalViewAttr:$destRtti ,
627- "mlir::FlatSymbolRefAttr":$runtimeFunc ,
628- "mlir::FlatSymbolRefAttr":$badCastFunc ,
629- CIR_IntAttr:$offsetHint
625+ CIR_GlobalViewAttr:$src_rtti ,
626+ CIR_GlobalViewAttr:$dest_rtti ,
627+ "mlir::FlatSymbolRefAttr":$runtime_func ,
628+ "mlir::FlatSymbolRefAttr":$bad_cast_func ,
629+ CIR_IntAttr:$offset_hint
630630 );
631631
632632 let builders = [
633- AttrBuilderWithInferredContext<(ins "GlobalViewAttr":$srcRtti ,
634- "GlobalViewAttr":$destRtti ,
635- "mlir::FlatSymbolRefAttr":$runtimeFunc ,
636- "mlir::FlatSymbolRefAttr":$badCastFunc ,
637- "IntAttr":$offsetHint ), [{
638- return $_get(srcRtti .getContext(), srcRtti, destRtti, runtimeFunc ,
639- badCastFunc, offsetHint );
633+ AttrBuilderWithInferredContext<(ins "GlobalViewAttr":$src_rtti ,
634+ "GlobalViewAttr":$dest_rtti ,
635+ "mlir::FlatSymbolRefAttr":$runtime_func ,
636+ "mlir::FlatSymbolRefAttr":$bad_cast_func ,
637+ "IntAttr":$offset_hint ), [{
638+ return $_get(src_rtti .getContext(), src_rtti, dest_rtti, runtime_func ,
639+ bad_cast_func, offset_hint );
640640 }]>,
641641 ];
642642
643643 let genVerifyDecl = 1;
644644 let assemblyFormat = [{
645645 `<`
646- `srcRtti` `=` qualified($srcRtti) `,` `destRtti` `=` qualified($destRtti)
647- `,` `runtimeFunc` `=` $runtimeFunc `,` `badCastFunc` `=` $badCastFunc `,`
648- `offsetHint` `=` qualified($offsetHint)
646+ struct(qualified($src_rtti),
647+ qualified($dest_rtti),
648+ $runtime_func,
649+ $bad_cast_func,
650+ qualified($offset_hint))
649651 `>`
650652 }];
651653
0 commit comments