File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
SwiftCompilerSources/Sources/SIL Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -658,13 +658,21 @@ final public class BuiltinInst : SingleValueInstruction {
658
658
return bridged. BuiltinInst_getID ( )
659
659
}
660
660
661
+ public var name : StringRef {
662
+ return StringRef ( bridged: bridged. BuiltinInst_getName ( ) )
663
+ }
664
+
661
665
public var intrinsicID : BridgedInstruction . IntrinsicID {
662
666
return bridged. BuiltinInst_getIntrinsicID ( )
663
667
}
664
668
665
669
public var substitutionMap : SubstitutionMap {
666
670
SubstitutionMap ( bridged: bridged. BuiltinInst_getSubstitutionMap ( ) )
667
671
}
672
+
673
+ public var arguments : LazyMapSequence < OperandArray , Value > {
674
+ operands. values
675
+ }
668
676
}
669
677
670
678
final public class UpcastInst : SingleValueInstruction , UnaryInstruction {
Original file line number Diff line number Diff line change @@ -718,6 +718,7 @@ struct BridgedInstruction {
718
718
BRIDGED_INLINE bool LoadBorrowInst_isUnchecked () const ;
719
719
BRIDGED_INLINE BuiltinValueKind BuiltinInst_getID () const ;
720
720
BRIDGED_INLINE IntrinsicID BuiltinInst_getIntrinsicID () const ;
721
+ SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedStringRef BuiltinInst_getName () const ;
721
722
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedSubstitutionMap BuiltinInst_getSubstitutionMap () const ;
722
723
BRIDGED_INLINE bool PointerToAddressInst_isStrict () const ;
723
724
BRIDGED_INLINE bool PointerToAddressInst_isInvariant () const ;
Original file line number Diff line number Diff line change @@ -1132,6 +1132,10 @@ BridgedInstruction::IntrinsicID BridgedInstruction::BuiltinInst_getIntrinsicID()
1132
1132
}
1133
1133
}
1134
1134
1135
+ BridgedStringRef BridgedInstruction::BuiltinInst_getName () const {
1136
+ return getAs<swift::BuiltinInst>()->getName ().str ();
1137
+ }
1138
+
1135
1139
BridgedSubstitutionMap BridgedInstruction::BuiltinInst_getSubstitutionMap () const {
1136
1140
return getAs<swift::BuiltinInst>()->getSubstitutions ();
1137
1141
}
You can’t perform that action at this time.
0 commit comments