Home | History | Annotate | Download | only in TableGen

Lines Matching defs:Code

24 // Support Code for the Semantic Actions.
293 // Parser Code
602 /// Type ::= CODE // code type
612 case tgtok::Code: Lex.Lex(); return CodeRecTy::get();
730 UnOpInit::UnaryOp Code;
734 default: assert(0 && "Unhandled code!");
737 Code = UnOpInit::CAST;
749 Code = UnOpInit::HEAD;
753 Code = UnOpInit::TAIL;
757 Code = UnOpInit::EMPTY;
770 if (Code == UnOpInit::HEAD
771 || Code == UnOpInit::TAIL
772 || Code == UnOpInit::EMPTY) {
789 if (Code == UnOpInit::HEAD
790 || Code == UnOpInit::TAIL) {
807 if (Code == UnOpInit::HEAD) {
819 if (Code == UnOpInit::HEAD) {
833 return (UnOpInit::get(Code, LHS, Type))->Fold(CurRec, CurMultiClass);
846 BinOpInit::BinaryOp Code;
850 default: assert(0 && "Unhandled code!");
851 case tgtok::XConcat: Code = BinOpInit::CONCAT;Type = DagRecTy::get(); break;
852 case tgtok::XSRA: Code = BinOpInit::SRA; Type = IntRecTy::get(); break;
853 case tgtok::XSRL: Code = BinOpInit::SRL; Type = IntRecTy::get(); break;
854 case tgtok::XSHL: Code = BinOpInit::SHL; Type = IntRecTy::get(); break;
855 case tgtok::XEq: Code = BinOpInit::EQ; Type = BitRecTy::get(); break;
857 Code = BinOpInit::STRCONCAT;
888 if (Code == BinOpInit::STRCONCAT) {
891 RHS = (BinOpInit::get(Code, InitList.back(), RHS, Type))
898 return (BinOpInit::get(Code, InitList[0], InitList[1], Type))
908 TernOpInit::TernaryOp Code;
914 default: assert(0 && "Unhandled code!");
916 Code = TernOpInit::IF;
919 Code = TernOpInit::FOREACH;
922 Code = TernOpInit::SUBST;
959 default: assert(0 && "Unhandled code!");
1025 return (TernOpInit::get(Code, LHS, MHS, RHS, Type))->Fold(CurRec,