LLVM 20.0.0git
PPCTargetParser.h
Go to the documentation of this file.
1//===---- PPCTargetParser - Parser for target features ----------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file implements a target parser to recognise hardware features
10// for PPC CPUs.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_TARGETPARSER_PPCTARGETPARSER_H
15#define LLVM_TARGETPARSER_PPCTARGETPARSER_H
16
17#include "llvm/ADT/StringRef.h"
19
20namespace llvm {
21namespace PPC {
22bool isValidCPU(StringRef CPU);
25
26// Get target CPU name.
27// If CPUName is empty or generic, return the default CPU name.
28// If CPUName is not empty or generic, return the normalized CPU name.
30
31// Get the tune CPU name.
33
34// For PPC, there are some cpu names for same CPU, like pwr10 and power10,
35// normalize them.
37} // namespace PPC
38} // namespace llvm
39
40#endif
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: SmallVector.h:586
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
StringRef getNormalizedPPCTargetCPU(const Triple &T, StringRef CPUName="")
bool isValidCPU(StringRef CPU)
StringRef normalizeCPUName(StringRef CPUName)
void fillValidTuneCPUList(SmallVectorImpl< StringRef > &Values)
StringRef getNormalizedPPCTuneCPU(const Triple &T, StringRef CPUName="")
void fillValidCPUList(SmallVectorImpl< StringRef > &Values)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18