[clang] NFC, add a "continue" bailout in the for-loop of
[llvm-project.git] / llvm / lib / Target / DirectX / DirectXSubtarget.h
blob464d05a0e1ffef58be8c10385539f36b5213147b
1 //===-- DirectXSubtarget.h - Define Subtarget for DirectX -------*- 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 declares the DirectX specific subclass of TargetSubtargetInfo.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_DIRECTX_DIRECTXSUBTARGET_H
14 #define LLVM_DIRECTX_DIRECTXSUBTARGET_H
16 #include "DirectXFrameLowering.h"
17 #include "DirectXInstrInfo.h"
18 #include "DirectXTargetLowering.h"
19 #include "llvm/CodeGen/TargetSubtargetInfo.h"
20 #include "llvm/IR/DataLayout.h"
21 #include "llvm/Target/TargetMachine.h"
23 #define GET_SUBTARGETINFO_HEADER
24 #include "DirectXGenSubtargetInfo.inc"
26 namespace llvm {
28 class DirectXTargetMachine;
30 class DirectXSubtarget : public DirectXGenSubtargetInfo {
31 DirectXFrameLowering FL;
32 DirectXTargetLowering TL;
33 DirectXInstrInfo InstrInfo;
35 virtual void anchor(); // virtual anchor method
37 public:
38 DirectXSubtarget(const Triple &TT, StringRef CPU, StringRef FS,
39 const DirectXTargetMachine &TM);
41 /// Parses a subtarget feature string, setting appropriate options.
42 /// \note Definition of function is auto generated by `tblgen`.
43 void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS);
45 const DirectXTargetLowering *getTargetLowering() const override {
46 return &TL;
49 const DirectXFrameLowering *getFrameLowering() const override { return &FL; }
51 const DirectXInstrInfo *getInstrInfo() const override { return &InstrInfo; }
54 } // end namespace llvm
56 #endif // LLVM_DIRECTX_DIRECTXSUBTARGET_H