Lines Matching refs:Code
23 // Support Code for the Semantic Actions.
356 // Parser Code
651 /// Type ::= CODE // code type
663 case tgtok::Code: Lex.Lex(); return CodeRecTy::get();
773 UnOpInit::UnaryOp Code;
777 default: llvm_unreachable("Unhandled code!");
780 Code = UnOpInit::CAST;
792 Code = UnOpInit::HEAD;
796 Code = UnOpInit::TAIL;
800 Code = UnOpInit::EMPTY;
813 if (Code == UnOpInit::HEAD ||
814 Code == UnOpInit::TAIL ||
815 Code == UnOpInit::EMPTY) {
832 if (Code == UnOpInit::HEAD || Code == UnOpInit::TAIL) {
849 Type = (Code == UnOpInit::HEAD) ? Itemt->getType()
858 Type = (Code == UnOpInit::HEAD) ? LType->getElementType() : LType;
868 return (UnOpInit::get(Code, LHS, Type))->Fold(CurRec, CurMultiClass);
884 BinOpInit::BinaryOp Code;
888 default: llvm_unreachable("Unhandled code!");
889 case tgtok::XConcat: Code = BinOpInit::CONCAT;Type = DagRecTy::get(); break;
890 case tgtok::XADD: Code = BinOpInit::ADD; Type = IntRecTy::get(); break;
891 case tgtok::XAND: Code = BinOpInit::AND; Type = IntRecTy::get(); break;
892 case tgtok::XSRA: Code = BinOpInit::SRA; Type = IntRecTy::get(); break;
893 case tgtok::XSRL: Code = BinOpInit::SRL; Type = IntRecTy::get(); break;
894 case tgtok::XSHL: Code = BinOpInit::SHL; Type = IntRecTy::get(); break;
895 case tgtok::XEq: Code = BinOpInit::EQ; Type = BitRecTy::get(); break;
897 Code = BinOpInit::LISTCONCAT;
901 Code = BinOpInit::STRCONCAT;
945 if (Code == BinOpInit::STRCONCAT || Code == BinOpInit::LISTCONCAT) {
948 RHS = (BinOpInit::get(Code, InitList.back(), RHS, Type))
955 return (BinOpInit::get(Code, InitList[0], InitList[1], Type))
965 TernOpInit::TernaryOp Code;
971 default: llvm_unreachable("Unhandled code!");
973 Code = TernOpInit::IF;
976 Code = TernOpInit::FOREACH;
979 Code = TernOpInit::SUBST;
1018 default: llvm_unreachable("Unhandled code!");
1077 return (TernOpInit::get(Code, LHS, MHS, RHS, Type))->Fold(CurRec,