LLVM  14.0.0git
R600Subtarget.cpp
Go to the documentation of this file.
1 //===-- R600Subtarget.cpp - R600 Subtarget Information --------------------===//
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 /// Implements the R600 specific subclass of TargetSubtarget.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "R600Subtarget.h"
16 
17 using namespace llvm;
18 
19 #define DEBUG_TYPE "r600-subtarget"
20 
21 #define GET_SUBTARGETINFO_TARGET_DESC
22 #define GET_SUBTARGETINFO_CTOR
23 #include "R600GenSubtargetInfo.inc"
24 
26  const TargetMachine &TM)
27  : R600GenSubtargetInfo(TT, GPU, /*TuneCPU*/ GPU, FS), AMDGPUSubtarget(TT),
28  InstrInfo(*this),
29  FrameLowering(TargetFrameLowering::StackGrowsUp, getStackAlignment(), 0),
30  FMA(false), CaymanISA(false), CFALUBug(false), HasVertexCache(false),
31  R600ALUInst(false), FP64(false), TexVTXClauseSize(0), Gen(R600),
32  TLInfo(TM, initializeSubtargetDependencies(TT, GPU, FS)),
33  InstrItins(getInstrItineraryForCPU(GPU)) {}
34 
36  StringRef GPU,
37  StringRef FS) {
38  SmallString<256> FullFS("+promote-alloca,");
39  FullFS += FS;
40  ParseSubtargetFeatures(GPU, /*TuneCPU*/ GPU, FullFS);
41 
44 
45  return *this;
46 }
llvm::AMDGPUSubtarget::HasMulI24
bool HasMulI24
Definition: AMDGPUSubtarget.h:55
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::TargetFrameLowering
Information about stack frame layout on the target.
Definition: TargetFrameLowering.h:43
llvm::R600Subtarget::initializeSubtargetDependencies
R600Subtarget & initializeSubtargetDependencies(const Triple &TT, StringRef GPU, StringRef FS)
Definition: R600Subtarget.cpp:35
llvm::R600Subtarget::R600Subtarget
R600Subtarget(const Triple &TT, StringRef CPU, StringRef FS, const TargetMachine &TM)
Definition: R600Subtarget.cpp:25
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:45
llvm::ISD::FMA
@ FMA
FMA - Perform a * b + c with no intermediate rounding step.
Definition: ISDOpcodes.h:466
llvm::X86AS::FS
@ FS
Definition: X86.h:188
llvm::R600Subtarget::hasCaymanISA
bool hasCaymanISA() const
Definition: R600Subtarget.h:113
false
Definition: StackSlotColoring.cpp:142
llvm::SmallString< 256 >
R600MCTargetDesc.h
llvm::R600Subtarget
Definition: R600Subtarget.h:35
llvm::AMDGPUSubtarget
Definition: AMDGPUSubtarget.h:29
llvm::R600Subtarget::getGeneration
Generation getGeneration() const
Definition: R600Subtarget.h:81
llvm::TargetMachine
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:80
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:57
this
Analysis the ScalarEvolution expression for r is this
Definition: README.txt:8
R600Subtarget.h
R600GenSubtargetInfo
TM
const char LLVMTargetMachineRef TM
Definition: PassBuilderBindings.cpp:47
llvm::AMDGPUSubtarget::HasMulU24
bool HasMulU24
Definition: AMDGPUSubtarget.h:56
llvm::R600Subtarget::ParseSubtargetFeatures
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
llvm::AMDGPUSubtarget::EVERGREEN
@ EVERGREEN
Definition: AMDGPUSubtarget.h:35