Home | History | Annotate | Download | only in TableGen

Lines Matching defs:Code

24 // Support Code for the Semantic Actions.
378 // Parser Code
675 /// Type ::= CODE // code type
687 case tgtok::Code: Lex.Lex(); return StringRecTy::get();
799 UnOpInit::UnaryOp Code;
803 default: llvm_unreachable("Unhandled code!");
806 Code = UnOpInit::CAST;
818 Code = UnOpInit::HEAD;
822 Code = UnOpInit::TAIL;
826 Code = UnOpInit::EMPTY;
839 if (Code == UnOpInit::HEAD
840 || Code == UnOpInit::TAIL
841 || Code == UnOpInit::EMPTY) {
858 if (Code == UnOpInit::HEAD
859 || Code == UnOpInit::TAIL) {
876 if (Code == UnOpInit::HEAD) {
888 if (Code == UnOpInit::HEAD) {
902 return (UnOpInit::get(Code, LHS, Type))->Fold(CurRec, CurMultiClass);
917 BinOpInit::BinaryOp Code;
921 default: llvm_unreachable("Unhandled code!");
922 case tgtok::XConcat: Code = BinOpInit::CONCAT;Type = DagRecTy::get(); break;
923 case tgtok::XADD: Code = BinOpInit::ADD; Type = IntRecTy::get(); break;
924 case tgtok::XSRA: Code = BinOpInit::SRA; Type = IntRecTy::get(); break;
925 case tgtok::XSRL: Code = BinOpInit::SRL; Type = IntRecTy::get(); break;
926 case tgtok::XSHL: Code = BinOpInit::SHL; Type = IntRecTy::get(); break;
927 case tgtok::XEq: Code = BinOpInit::EQ; Type = BitRecTy::get(); break;
929 Code = BinOpInit::LISTCONCAT;
933 Code = BinOpInit::STRCONCAT;
977 if (Code == BinOpInit::STRCONCAT || Code == BinOpInit::LISTCONCAT) {
980 RHS = (BinOpInit::get(Code, InitList.back(), RHS, Type))
987 return (BinOpInit::get(Code, InitList[0], InitList[1], Type))
997 TernOpInit::TernaryOp Code;
1003 default: llvm_unreachable("Unhandled code!");
1005 Code = TernOpInit::IF;
1008 Code = TernOpInit::FOREACH;
1011 Code = TernOpInit::SUBST;
1050 default: llvm_unreachable("Unhandled code!");
1109 return (TernOpInit::get(Code, LHS, MHS, RHS, Type))->Fold(CurRec,