Summary: This is no longer used by mesa since its 18.0.0 release.
Reviewers: nhaehnle
Reviewed By: nhaehnle
Subscribers: arsenm, kzhuravl, wdng, yaxunl, dstuttard, tpr, llvm-commits, t-tye
Differential Revision: https://reviews.llvm.org/D45988
llvm-svn: 330775
let TargetPrefix = "AMDGPU", isTarget = 1 in {
def int_AMDGPU_kill : Intrinsic<[], [llvm_float_ty], []>;
- def int_AMDGPU_kilp : Intrinsic<[], [], []>;
}
include "SIIntrinsics.td"
>;
// KIL Patterns
-def KILP : R600Pat <
- (int_AMDGPU_kilp),
- (MASK_WRITE (KILLGT (f32 ONE), (f32 ZERO)))
->;
-
def KIL : R600Pat <
(int_AMDGPU_kill f32:$src0),
(MASK_WRITE (KILLGT (f32 ZERO), $src0))
(SI_ELSE $src, $target, 0)
>;
-def : GCNPat <
- (int_AMDGPU_kilp),
- (SI_KILL_I1_PSEUDO (i1 0), 0)
->;
-
def : Pat <
// -1.0 as i32 (LowerINTRINSIC_VOID converts all other constants to -1.0)
(AMDGPUkill (i32 -1082130432)),
+++ /dev/null
-; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
-; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
-
-; SI-LABEL: {{^}}kilp_gs_const:
-; SI: s_mov_b64 exec, 0
-define amdgpu_gs void @kilp_gs_const() {
-main_body:
- %0 = icmp ule i32 0, 3
- %1 = select i1 %0, float 1.000000e+00, float -1.000000e+00
- call void @llvm.AMDGPU.kilp(float %1)
- %2 = icmp ule i32 3, 0
- %3 = select i1 %2, float 1.000000e+00, float -1.000000e+00
- call void @llvm.AMDGPU.kilp(float %3)
- ret void
-}
-
-declare void @llvm.AMDGPU.kilp(float)
-
-!0 = !{!"const", null, i32 1}
br i1 %cmp, label %then, label %endif
then:
- tail call void @llvm.AMDGPU.kilp()
+ tail call void @llvm.amdgcn.kill(i1 false)
br label %endif
endif:
br i1 %cc, label %loop, label %break
break:
- tail call void @llvm.AMDGPU.kilp()
+ tail call void @llvm.amdgcn.kill(i1 false)
br label %endif
endif:
%ind = phi i32 [%sub, %then], [%dec, %loop]
%dec = sub i32 %ind, 1
%cc = icmp ne i32 %ind, 0
- tail call void @llvm.AMDGPU.kilp()
+ tail call void @llvm.amdgcn.kill(i1 false)
br i1 %cc, label %loop, label %break
break:
ret void
}
-declare void @llvm.AMDGPU.kilp()
+declare void @llvm.amdgcn.kill(i1) #0
+
+attributes #0 = { nounwind }