|
|
|||
File indexing completed on 2026-05-10 08:44:37
0001 //===---- PPCTargetParser - Parser for target features ----------*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 // 0009 // This file implements a target parser to recognise hardware features 0010 // for PPC CPUs. 0011 // 0012 //===----------------------------------------------------------------------===// 0013 0014 #ifndef LLVM_TARGETPARSER_PPCTARGETPARSER_H 0015 #define LLVM_TARGETPARSER_PPCTARGETPARSER_H 0016 0017 #include "llvm/ADT/StringRef.h" 0018 #include "llvm/TargetParser/Triple.h" 0019 0020 namespace llvm { 0021 namespace PPC { 0022 bool isValidCPU(StringRef CPU); 0023 void fillValidCPUList(SmallVectorImpl<StringRef> &Values); 0024 void fillValidTuneCPUList(SmallVectorImpl<StringRef> &Values); 0025 0026 // Get target CPU name. 0027 // If CPUName is empty or generic, return the default CPU name. 0028 // If CPUName is not empty or generic, return the normalized CPU name. 0029 StringRef getNormalizedPPCTargetCPU(const Triple &T, StringRef CPUName = ""); 0030 0031 // Get the tune CPU name. 0032 StringRef getNormalizedPPCTuneCPU(const Triple &T, StringRef CPUName = ""); 0033 0034 // For PPC, there are some cpu names for same CPU, like pwr10 and power10, 0035 // normalize them. 0036 StringRef normalizeCPUName(StringRef CPUName); 0037 } // namespace PPC 0038 } // namespace llvm 0039 0040 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|