Home | History | Annotate | Download | only in AsmParser

Lines Matching full:opc

2084     unsigned Opc = Lex.getUIntVal();
2094 if (!CastInst::castIsValid((Instruction::CastOps)Opc, SrcVal, DestTy))
2098 ID.ConstantVal = ConstantExpr::getCast((Instruction::CastOps)Opc,
2142 unsigned PredVal, Opc = Lex.getUIntVal();
2145 if (ParseCmpPredicate(PredVal, Opc) ||
2158 if (Opc == Instruction::FCmp) {
2163 assert(Opc == Instruction::ICmp && "Unexpected opcode for CmpInst!");
2192 unsigned Opc = Lex.getUIntVal();
2196 if (Opc == Instruction::Add || Opc == Instruction::Sub ||
2197 Opc == Instruction::Mul || Opc == Instruction::Shl) {
2205 } else if (Opc == Instruction::SDiv || Opc == Instruction::UDiv ||
2206 Opc == Instruction::LShr || Opc == Instruction::AShr) {
2225 switch (Opc) {
2253 Constant *C = ConstantExpr::get(Opc, Val0, Val1, Flags);
2263 unsigned Opc = Lex.getUIntVal();
2277 ID.ConstantVal = ConstantExpr::get(Opc, Val0, Val1);
2287 unsigned Opc = Lex.getUIntVal();
2291 if (Opc == Instruction::GetElementPtr)
2298 if (Opc == Instruction::GetElementPtr) {
2308 } else if (Opc == Instruction::Select) {
2315 } else if (Opc == Instruction::ShuffleVector) {
2322 } else if (Opc == Instruction::ExtractElement) {
2329 assert(Opc == Instruction::InsertElement && "Unknown opcode");
2969 bool LLParser::ParseCmpPredicate(unsigned &P, unsigned Opc) {
2970 if (Opc == Instruction::FCmp) {
3273 unsigned Opc, unsigned OperandType) {
3294 Inst = BinaryOperator::Create((Instruction::BinaryOps)Opc, LHS, RHS);
3301 unsigned Opc) {
3311 Inst = BinaryOperator::Create((Instruction::BinaryOps)Opc, LHS, RHS);
3320 unsigned Opc) {
3325 if (ParseCmpPredicate(Pred, Opc) ||
3331 if (Opc == Instruction::FCmp) {
3336 assert(Opc == Instruction::ICmp && "Unknown opcode for CmpInst!");
3353 unsigned Opc) {
3362 if (!CastInst::castIsValid((Instruction::CastOps)Opc, Op, DestTy)) {
3363 CastInst::castIsValid((Instruction::CastOps)Opc, Op, DestTy);
3368 Inst = CastInst::Create((Instruction::CastOps)Opc, Op, DestTy);