//===-- LegalizeTypes.h - DAG Type Legalizer class definition ---*- 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 DAGTypeLegalizer class. This is a private interface // shared between the code that implements the SelectionDAG::LegalizeTypes // method. // //===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_SELECTIONDAG_LEGALIZETYPES_H #define LLVM_LIB_CODEGEN_SELECTIONDAG_LEGALIZETYPES_H #include "MatchContext.h" #include "llvm/ADT/DenseMap.h" #include "llvm/CodeGen/SelectionDAG.h" #include "llvm/CodeGen/TargetLowering.h" #include "llvm/Support/Compiler.h" namespace llvm { //===----------------------------------------------------------------------===// /// This takes an arbitrary SelectionDAG as input and hacks on it until only /// value types the target machine can handle are left. This involves promoting /// small sizes to large sizes or splitting up large values into small values. /// class LLVM_LIBRARY_VISIBILITY DAGTypeLegalizer { … }; } // end namespace llvm. #endif