Lines Matching refs:Opcode
73 /// This function determines which opcode to use to fold two constant cast
75 /// the opcode. Consequently its just a wrapper around that function.
79 unsigned opc, ///< opcode of the second cast constant expression
85 assert(CastInst::isCast(opc) && "Invalid cast opcode");
565 // opcode specified.
1001 Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode,
1009 switch (Opcode) {
1037 if (Opcode == Instruction::UDiv || Opcode == Instruction::SDiv)
1073 switch (Opcode) {
1168 if (Instruction::isCommutative(Opcode))
1169 return ConstantExpr::get(Opcode, C2, C1);
1178 switch (Opcode) {
1233 switch (Opcode) {
1251 switch (Opcode) {
1280 switch (Opcode) {
1420 if (Instruction::isAssociative(Opcode) && CE1->getOpcode() == Opcode) {
1421 Constant *T = ConstantExpr::get(Opcode, CE1->getOperand(1), C2);
1422 if (!isa<ConstantExpr>(T) || cast<ConstantExpr>(T)->getOpcode() != Opcode)
1423 return ConstantExpr::get(Opcode, CE1->getOperand(0), T);
1428 if (Instruction::isCommutative(Opcode))
1429 return ConstantFoldBinaryInstruction(Opcode, C2, C1);
1434 switch (Opcode) {