@@ -45,7 +45,7 @@ static bool fnegFoldsIntoMI(const MachineInstr &MI) {
4545 case AMDGPU::G_AMDGPU_FMAX_LEGACY:
4646 return true ;
4747 case AMDGPU::G_INTRINSIC: {
48- unsigned IntrinsicID = cast<GIntrinsic>(MI).getIntrinsicID ();
48+ Intrinsic::ID IntrinsicID = cast<GIntrinsic>(MI).getIntrinsicID ();
4949 switch (IntrinsicID) {
5050 case Intrinsic::amdgcn_rcp:
5151 case Intrinsic::amdgcn_rcp_legacy:
@@ -96,7 +96,7 @@ static bool hasSourceMods(const MachineInstr &MI) {
9696 return false ;
9797 case AMDGPU::G_INTRINSIC:
9898 case AMDGPU::G_INTRINSIC_CONVERGENT: {
99- unsigned IntrinsicID = cast<GIntrinsic>(MI).getIntrinsicID ();
99+ Intrinsic::ID IntrinsicID = cast<GIntrinsic>(MI).getIntrinsicID ();
100100 switch (IntrinsicID) {
101101 case Intrinsic::amdgcn_interp_p1:
102102 case Intrinsic::amdgcn_interp_p2:
@@ -239,7 +239,7 @@ bool AMDGPUCombinerHelper::matchFoldableFneg(MachineInstr &MI,
239239 return true ;
240240 case AMDGPU::G_INTRINSIC:
241241 case AMDGPU::G_INTRINSIC_CONVERGENT: {
242- unsigned IntrinsicID = cast<GIntrinsic>(MatchInfo)->getIntrinsicID ();
242+ Intrinsic::ID IntrinsicID = cast<GIntrinsic>(MatchInfo)->getIntrinsicID ();
243243 switch (IntrinsicID) {
244244 case Intrinsic::amdgcn_rcp:
245245 case Intrinsic::amdgcn_rcp_legacy:
@@ -341,7 +341,7 @@ void AMDGPUCombinerHelper::applyFoldableFneg(MachineInstr &MI,
341341 break ;
342342 case AMDGPU::G_INTRINSIC:
343343 case AMDGPU::G_INTRINSIC_CONVERGENT: {
344- unsigned IntrinsicID = cast<GIntrinsic>(MatchInfo)->getIntrinsicID ();
344+ Intrinsic::ID IntrinsicID = cast<GIntrinsic>(MatchInfo)->getIntrinsicID ();
345345 switch (IntrinsicID) {
346346 case Intrinsic::amdgcn_rcp:
347347 case Intrinsic::amdgcn_rcp_legacy:
0 commit comments