Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Basic/Targets/RISCV.h
//===--- RISCV.h - Declare RISCV target feature support ---------*- C++ -*-===// | //===--- RISCV.h - Declare RISCV target feature support ---------*- C++ -*-===// | ||||
Lint: Lint: clang-format not found in user’s local PATH; not linting file. | |||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// | // | ||||
Show All 27 Lines | RISCVTargetInfo(const llvm::Triple &Triple, const TargetOptions &) | ||||
LongDoubleAlign = 128; | LongDoubleAlign = 128; | ||||
LongDoubleFormat = &llvm::APFloat::IEEEquad(); | LongDoubleFormat = &llvm::APFloat::IEEEquad(); | ||||
SuitableAlign = 128; | SuitableAlign = 128; | ||||
WCharType = SignedInt; | WCharType = SignedInt; | ||||
WIntType = UnsignedInt; | WIntType = UnsignedInt; | ||||
HasRISCVVTypes = true; | HasRISCVVTypes = true; | ||||
MCountName = "_mcount"; | MCountName = "_mcount"; | ||||
HasFloat16 = true; | HasFloat16 = true; | ||||
HasStrictFP = true; | |||||
} | } | ||||
bool setCPU(const std::string &Name) override { | bool setCPU(const std::string &Name) override { | ||||
if (!isValidCPUName(Name)) | if (!isValidCPUName(Name)) | ||||
return false; | return false; | ||||
CPU = Name; | CPU = Name; | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |
clang-format not found in user’s local PATH; not linting file.