LLVM 24.0.0git
PISASubtarget.cpp
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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/// \file
10/// This file implements the PISA subtarget.
11///
12//===----------------------------------------------------------------------===//
13
14#include "PISASubtarget.h"
15#include "PISA.h"
16#include "PISATargetMachine.h"
17
18using namespace llvm;
19
20#define DEBUG_TYPE "pisa-subtarget"
21
22#define GET_SUBTARGETINFO_TARGET_DESC
23#define GET_SUBTARGETINFO_CTOR
24#include "PISAGenSubtargetInfo.inc"
25
26PISASubtarget::PISASubtarget(const Triple &TT, const std::string &CPU,
27 const std::string &FS, const PISATargetMachine &TM)
28 : PISAGenSubtargetInfo(TT, CPU, /*TuneCPU=*/CPU, FS), InstrInfo(*this),
29 FrameLowering(initSubtargetDependencies(CPU, FS)) {}
30
32 StringRef FS) {
33 ParseSubtargetFeatures(CPU, /*TuneCPU=*/CPU, FS);
34 return *this;
35}
This file declares the PISA subtarget.
This file declares the PISA target machine.
This file declares the top-level interfaces for the PISA target.
PISASubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const PISATargetMachine &TM)
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
PISASubtarget & initSubtargetDependencies(StringRef CPU, StringRef FS)
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:48
This is an optimization pass for GlobalISel generic memory operations.