Lines Matching defs:Code
24 // Support Code for the Semantic Actions.
373 // Parser Code
669 /// Type ::= CODE // code type
681 case tgtok::Code: Lex.Lex(); return StringRecTy::get();
809 UnOpInit::UnaryOp Code;
813 default: llvm_unreachable("Unhandled code!");
816 Code = UnOpInit::CAST;
828 Code = UnOpInit::HEAD;
832 Code = UnOpInit::TAIL;
836 Code = UnOpInit::EMPTY;
849 if (Code == UnOpInit::HEAD
850 || Code == UnOpInit::TAIL
851 || Code == UnOpInit::EMPTY) {
868 if (Code == UnOpInit::HEAD
869 || Code == UnOpInit::TAIL) {
886 if (Code == UnOpInit::HEAD) {
898 if (Code == UnOpInit::HEAD) {
912 return (UnOpInit::get(Code, LHS, Type))->Fold(CurRec, CurMultiClass);
926 BinOpInit::BinaryOp Code;
930 default: llvm_unreachable("Unhandled code!");
931 case tgtok::XConcat: Code = BinOpInit::CONCAT;Type = DagRecTy::get(); break;
932 case tgtok::XADD: Code = BinOpInit::ADD; Type = IntRecTy::get(); break;
933 case tgtok::XSRA: Code = BinOpInit::SRA; Type = IntRecTy::get(); break;
934 case tgtok::XSRL: Code = BinOpInit::SRL; Type = IntRecTy::get(); break;
935 case tgtok::XSHL: Code = BinOpInit::SHL; Type = IntRecTy::get(); break;
936 case tgtok::XEq: Code = BinOpInit::EQ; Type = BitRecTy::get(); break;
938 Code = BinOpInit::STRCONCAT;
969 if (Code == BinOpInit::STRCONCAT) {
972 RHS = (BinOpInit::get(Code, InitList.back(), RHS, Type))
979 return (BinOpInit::get(Code, InitList[0], InitList[1], Type))
989 TernOpInit::TernaryOp Code;
995 default: llvm_unreachable("Unhandled code!");
997 Code = TernOpInit::IF;
1000 Code = TernOpInit::FOREACH;
1003 Code = TernOpInit::SUBST;
1040 default: llvm_unreachable("Unhandled code!");
1099 return (TernOpInit::get(Code, LHS, MHS, RHS, Type))->Fold(CurRec,