forked from OSchip/llvm-project
[X86] Move X86ShuffleDecode.cpp/h into MCTargetDesc and remove X86Utils library. NFC
The shuffle decoding is used by X86ISelLowering and MCTargetDesc/X86InstComments. The latter used to be in a separate InstPrinter library. The Utils library existed to allow InstPrinter and CodeGen to share the shuffle decoding. Since X86InstComments now lives in the MCTargetDesc, which CodeGen already depends on, we can sink the shuffle decoding there as well. Differential Revision: https://reviews.llvm.org/D77980
This commit is contained in:
parent
0b0bb1969f
commit
6dbf1a1229
|
@ -80,4 +80,3 @@ add_subdirectory(AsmParser)
|
|||
add_subdirectory(Disassembler)
|
||||
add_subdirectory(MCTargetDesc)
|
||||
add_subdirectory(TargetInfo)
|
||||
add_subdirectory(Utils)
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
;===------------------------------------------------------------------------===;
|
||||
|
||||
[common]
|
||||
subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo Utils
|
||||
subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo
|
||||
|
||||
[component_0]
|
||||
type = TargetGroup
|
||||
|
@ -30,5 +30,5 @@ has_jit = 1
|
|||
type = Library
|
||||
name = X86CodeGen
|
||||
parent = X86
|
||||
required_libraries = Analysis AsmPrinter CodeGen Core MC SelectionDAG Support Target X86Desc X86Info X86Utils GlobalISel ProfileData CFGuard
|
||||
required_libraries = Analysis AsmPrinter CodeGen Core MC SelectionDAG Support Target X86Desc X86Info GlobalISel ProfileData CFGuard
|
||||
add_to_library_groups = X86
|
||||
|
|
|
@ -3,6 +3,7 @@ add_llvm_component_library(LLVMX86Desc
|
|||
X86IntelInstPrinter.cpp
|
||||
X86InstComments.cpp
|
||||
X86InstPrinterCommon.cpp
|
||||
X86ShuffleDecode.cpp
|
||||
X86AsmBackend.cpp
|
||||
X86MCTargetDesc.cpp
|
||||
X86MCAsmInfo.cpp
|
||||
|
|
|
@ -18,5 +18,5 @@
|
|||
type = Library
|
||||
name = X86Desc
|
||||
parent = X86
|
||||
required_libraries = MC MCDisassembler Support X86Info X86Utils BinaryFormat
|
||||
required_libraries = MC MCDisassembler Support X86Info BinaryFormat
|
||||
add_to_library_groups = X86
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "X86ATTInstPrinter.h"
|
||||
#include "X86BaseInfo.h"
|
||||
#include "X86MCTargetDesc.h"
|
||||
#include "Utils/X86ShuffleDecode.h"
|
||||
#include "X86ShuffleDecode.h"
|
||||
#include "llvm/MC/MCInst.h"
|
||||
#include "llvm/MC/MCInstrInfo.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
add_llvm_component_library(LLVMX86Utils
|
||||
X86ShuffleDecode.cpp
|
||||
)
|
|
@ -1,22 +0,0 @@
|
|||
;===- ./lib/Target/X86/Utils/LLVMBuild.txt ---------------------*- Conf -*--===;
|
||||
;
|
||||
; 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 is an LLVMBuild description file for the components in this subdirectory.
|
||||
;
|
||||
; For more information on the LLVMBuild system, please see:
|
||||
;
|
||||
; http://llvm.org/docs/LLVMBuild.html
|
||||
;
|
||||
;===------------------------------------------------------------------------===;
|
||||
|
||||
[component_0]
|
||||
type = Library
|
||||
name = X86Utils
|
||||
parent = X86
|
||||
required_libraries = Support
|
||||
add_to_library_groups = X86
|
|
@ -12,7 +12,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "X86ISelLowering.h"
|
||||
#include "Utils/X86ShuffleDecode.h"
|
||||
#include "MCTargetDesc/X86ShuffleDecode.h"
|
||||
#include "X86CallingConv.h"
|
||||
#include "X86FrameLowering.h"
|
||||
#include "X86InstrBuilder.h"
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
#include "MCTargetDesc/X86ATTInstPrinter.h"
|
||||
#include "MCTargetDesc/X86BaseInfo.h"
|
||||
#include "MCTargetDesc/X86InstComments.h"
|
||||
#include "MCTargetDesc/X86ShuffleDecode.h"
|
||||
#include "MCTargetDesc/X86TargetStreamer.h"
|
||||
#include "Utils/X86ShuffleDecode.h"
|
||||
#include "X86AsmPrinter.h"
|
||||
#include "X86RegisterInfo.h"
|
||||
#include "X86ShuffleDecodeConstantPool.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "X86ShuffleDecodeConstantPool.h"
|
||||
#include "Utils/X86ShuffleDecode.h"
|
||||
#include "MCTargetDesc/X86ShuffleDecode.h"
|
||||
#include "llvm/ADT/APInt.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/IR/Constants.h"
|
||||
|
|
Loading…
Reference in New Issue