File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -770,12 +770,17 @@ class OpLowerer {
770770 continue ;
771771 Intrinsic::ID ID = F.getIntrinsicID ();
772772 switch (ID) {
773+ // NOTE: Skip dx_resource_casthandle here. They are
774+ // resolved after this loop in cleanupHandleCasts.
773775 case Intrinsic::dx_resource_casthandle:
776+ // NOTE: llvm.dbg.value is supported as is in DXIL.
777+ case Intrinsic::dbg_value:
774778 case Intrinsic::not_intrinsic:
775779 continue ;
776780 default : {
777781 DiagnosticInfoUnsupported Diag (F, " Unknown intrinsic?" );
778782 M.getContext ().diagnose (Diag);
783+ HasErrors |= true ;
779784 break ;
780785 }
781786#define DXIL_OP_INTRINSIC (OpCode, Intrin, ...) \
Original file line number Diff line number Diff line change 1- ; RUN: not opt -S -scalarizer - dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
1+ ; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
22
33; CHECK: error: <unknown>:0:0: in function llvm.vector.reduce.and.v4i32 i32 (<4 x i32>): Unknown intrinsic?
44define i32 @fn_and (<4 x i32 > %0 ) local_unnamed_addr #0 {
You can’t perform that action at this time.
0 commit comments