Both conceptually belong to the same subtarget, so it should not be necessary to pass in the context TargetRegisterInfo to any TargetInstrInfo member. Add this reference so those superfluous arguments can be removed. Most targets placed their TargetRegisterInfo as a member in TargetInstrInfo. A few had this owned by the TargetSubtargetInfo, so unify all targets to look the same.
25 lines
824 B
C++
25 lines
824 B
C++
//===-- DirectXInstrInfo.cpp - InstrInfo for DirectX -*- C++ ------------*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file defines the DirectX specific subclass of TargetInstrInfo.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "DirectXInstrInfo.h"
|
|
#include "DirectXSubtarget.h"
|
|
|
|
#define GET_INSTRINFO_CTOR_DTOR
|
|
#include "DirectXGenInstrInfo.inc"
|
|
|
|
using namespace llvm;
|
|
|
|
DirectXInstrInfo::DirectXInstrInfo(const DirectXSubtarget &STI)
|
|
: DirectXGenInstrInfo(STI, RI) {}
|
|
|
|
DirectXInstrInfo::~DirectXInstrInfo() {}
|