File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
clang/include/clang/Basic Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2828,8 +2828,8 @@ targets. This attribute may be attached to a function definition and instructs
2828
2828
the backend to generate appropriate function entry/exit code so that it can be
2829
2829
used directly as an interrupt service routine.
2830
2830
2831
- Permissible values for this parameter are ``user``, ``supervisor``,
2832
- and ``machine``. If there is no parameter, then it defaults to machine.
2831
+ Permissible values for this parameter are ``supervisor`` and ``machine``. If
2832
+ there is no parameter, then it defaults to `` machine`` .
2833
2833
2834
2834
Repeated interrupt attribute on the same declaration will cause a warning
2835
2835
to be emitted. In case of repeated declarations, the last one prevails.
Original file line number Diff line number Diff line change @@ -20831,7 +20831,7 @@ SDValue RISCVTargetLowering::LowerFormalArguments(
20831
20831
StringRef Kind =
20832
20832
MF.getFunction().getFnAttribute("interrupt").getValueAsString();
20833
20833
20834
- if (!(Kind == "user" || Kind == " supervisor" || Kind == "machine"))
20834
+ if (!(Kind == "supervisor" || Kind == "machine"))
20835
20835
report_fatal_error(
20836
20836
"Function interrupt attribute argument not supported!");
20837
20837
}
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ define internal void @internal2() {
279
279
}
280
280
281
281
; Check interrupt function does not need landing pad.
282
- define void @interrupt () "interrupt" ="user " {
282
+ define void @interrupt () "interrupt" ="machine " {
283
283
; CHECK-LABEL: interrupt:
284
284
; CHECK: # %bb.0:
285
285
; CHECK-NEXT: mret
Original file line number Diff line number Diff line change @@ -1769,7 +1769,7 @@ define void @alloca(i32 %n) {
1769
1769
declare i32 @foo_test_irq (...)
1770
1770
@var_test_irq = global [32 x i32 ] zeroinitializer
1771
1771
1772
- define void @foo_with_irq () "interrupt" ="user " {
1772
+ define void @foo_with_irq () "interrupt" ="machine " {
1773
1773
; RV32IZCMP-LABEL: foo_with_irq:
1774
1774
; RV32IZCMP: # %bb.0:
1775
1775
; RV32IZCMP-NEXT: cm.push {ra}, -64
@@ -2273,7 +2273,7 @@ define void @foo_no_irq() {
2273
2273
ret void
2274
2274
}
2275
2275
2276
- define void @callee_with_irq () "interrupt" ="user " {
2276
+ define void @callee_with_irq () "interrupt" ="machine " {
2277
2277
; RV32IZCMP-LABEL: callee_with_irq:
2278
2278
; RV32IZCMP: # %bb.0:
2279
2279
; RV32IZCMP-NEXT: cm.push {ra, s0-s11}, -112
You can’t perform that action at this time.
0 commit comments