Lines Matching refs:UnOpInit
238 Init *StringRecTy::convertValue(UnOpInit *BO) {
239 if (BO->getOpcode() == UnOpInit::CAST) {
243 return UnOpInit::get(UnOpInit::CAST, L, new StringRecTy);
311 Init *DagRecTy::convertValue(UnOpInit *BO) {
312 if (BO->getOpcode() == UnOpInit::CAST) {
316 return UnOpInit::get(UnOpInit::CAST, L, new DagRecTy);
740 UnOpInit *UnOpInit::get(UnaryOp opc, Init *lhs, RecTy *Type) {
742 static Pool<DenseMap<Key, UnOpInit *> > ThePool;
746 UnOpInit *&I = ThePool[TheKey];
747 if (!I) I = new UnOpInit(opc, lhs, Type);
751 Init *UnOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const {
858 return const_cast<UnOpInit *>(this);
861 Init *UnOpInit::resolveReferences(Record &R, const RecordVal *RV) const {
865 return (UnOpInit::get(getOpcode(), lhs, getType()))->Fold(&R, 0);
869 std::string UnOpInit::getAsString() const {