File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -17004,6 +17004,7 @@ SDValue RISCVTargetLowering::LowerFormalArguments(
17004
17004
report_fatal_error("Unsupported calling convention");
17005
17005
case CallingConv::C:
17006
17006
case CallingConv::Fast:
17007
+ case CallingConv::SPIR_KERNEL:
17007
17008
break;
17008
17009
case CallingConv::GHC:
17009
17010
if (!Subtarget.hasStdExtFOrZfinx() || !Subtarget.hasStdExtDOrZdinx())
Original file line number Diff line number Diff line change
1
+ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2
+ ; RUN: llc -mtriple=riscv32 < %s | FileCheck %s -check-prefix=RV32
3
+ ; RUN: llc -mtriple=riscv64 < %s | FileCheck %s -check-prefix=RV64
4
+
5
+ ; Check the SPIR_KERNEL call convention works.
6
+
7
+ define dso_local spir_kernel void @foo () {
8
+ ; RV32-LABEL: foo:
9
+ ; RV32: # %bb.0:
10
+ ; RV32-NEXT: ret
11
+ ;
12
+ ; RV64-LABEL: foo:
13
+ ; RV64: # %bb.0:
14
+ ; RV64-NEXT: ret
15
+ ret void
16
+ }
You can’t perform that action at this time.
0 commit comments