Skip to content

Commit 5525ab5

Browse files
committed
Updated the changes by adopting the suggestions.
1 parent fbcef5f commit 5525ab5

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

clang/include/clang/Basic/BuiltinsRISCVXMIPS.td

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
class RISCVXMIPSBuiltin<string prototype, string features = ""> : TargetBuiltin {
15-
let Spellings = ["__builtin_riscv_" # NAME];
16-
let Prototype = prototype;
17-
let Features = features;
18-
}
19-
2014
//===----------------------------------------------------------------------===//
21-
// MIPS execution control extensions .
15+
// MIPS execution control extensions.
2216
//===----------------------------------------------------------------------===//
2317
let Attributes = [NoThrow, Const] in {
24-
def mips_pause : RISCVXMIPSBuiltin<"void()", "xmipsexectl">;
25-
def mips_ehb : RISCVXMIPSBuiltin<"void()", "xmipsexectl">;
26-
def mips_ihb : RISCVXMIPSBuiltin<"void()", "xmipsexectl">;
27-
}
18+
def mips_pause : RISCVBuiltin<"void()", "xmipsexectl">;
19+
def mips_ehb : RISCVBuiltin<"void()", "xmipsexectl">;
20+
def mips_ihb : RISCVBuiltin<"void()", "xmipsexectl">;
21+
}

llvm/include/llvm/IR/IntrinsicsRISCVXMIPS.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//===- IntrinsicsRISCVXMIPS.td - Defines MIPS intrinsics -------*- tablegen -*-===//
1+
//===- IntrinsicsRISCVXMIPS.td - MIPS intrinsics -------*- tablegen -*----===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// This file defines all of the MIPS specific intrinsics for RISCV.
9+
// This file defines all of the MIPS specific intrinsics for RISC-V.
1010
//
1111
//===----------------------------------------------------------------------===//
1212

llvm/test/CodeGen/RISCV/xmips-exectl.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --tool /home/ukalappa/llvm/github/build/bin/llc --version 6
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
22
; RUN: llc -mtriple=riscv64 -mcpu=mips-p8700 -O3 -verify-machineinstrs < %s \
33
; RUN: | FileCheck -check-prefix=MIPS %s
44

55
target datalayout = "e-m:e-p:32:32-i64:64-n32-S128"
66

7-
define dso_local void @test_mips_pause() local_unnamed_addr {
7+
define void @test_mips_pause() {
88
; MIPS-LABEL: test_mips_pause:
99
; MIPS: # %bb.0: # %entry
1010
; MIPS-NEXT: mips.pause
@@ -14,7 +14,7 @@ entry:
1414
ret void
1515
}
1616

17-
define dso_local void @test_mips_ehb() local_unnamed_addr {
17+
define void @test_mips_ehb() {
1818
; MIPS-LABEL: test_mips_ehb:
1919
; MIPS: # %bb.0: # %entry
2020
; MIPS-NEXT: mips.ehb
@@ -24,7 +24,7 @@ entry:
2424
ret void
2525
}
2626

27-
define dso_local void @test_mips_ihb() local_unnamed_addr {
27+
define void @test_mips_ihb() {
2828
; MIPS-LABEL: test_mips_ihb:
2929
; MIPS: # %bb.0: # %entry
3030
; MIPS-NEXT: mips.ihb

0 commit comments

Comments
 (0)