//===- VTEmitter.cpp - Generate properties from ValueTypes.td -------------===// // // 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 // //===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/Support/raw_ostream.h" #include "llvm/TableGen/Record.h" #include "llvm/TableGen/TableGenBackend.h" #include <array> #include <cassert> #include <map> usingnamespacellvm; namespace { class VTEmitter { … }; } // End anonymous namespace. static void VTtoGetLLVMTyString(raw_ostream &OS, const Record *VT) { … } void VTEmitter::run(raw_ostream &OS) { … } static TableGen::Emitter::OptClass<VTEmitter> X("gen-vt", "Generate ValueType");