//===- Record.cpp - Record implementation ---------------------------------===////// The LLVM Compiler Infrastructure//// This file is distributed under the University of Illinois Open Source// License. See LICENSE.TXT for details.////===----------------------------------------------------------------------===////// Implement the tablegen record classes.////===----------------------------------------------------------------------===//#include"Record.h"#include"llvm/Support/DataTypes.h"#include"llvm/Support/Streams.h"#include"llvm/ADT/StringExtras.h"#include<ios>usingnamespacellvm;//===----------------------------------------------------------------------===//// Type implementations//===----------------------------------------------------------------------===//voidRecTy::dump()const{print(*cerr.stream());}Init*BitRecTy::convertValue(BitsInit*BI){if(BI->getNumBits()!=1)return0;// Only accept if just one bit!returnBI->getBit(0);}boolBitRecTy::baseClassOf(constBitsRecTy*RHS)const{returnRHS->getNumBits