Lines Matching refs:Instruction

242   if (CE->getOpcode() == Instruction::PtrToInt ||
243 CE->getOpcode() == Instruction::BitCast)
382 if (CE->getOpcode() == Instruction::IntToPtr &&
493 Instruction::CastOps Cast = Instruction::BitCast;
497 Cast = Instruction::IntToPtr;
499 Cast = Instruction::PtrToInt;
535 if (CE->getOpcode() == Instruction::GetElementPtr) {
545 if (CE->getOpcode() == Instruction::BitCast)
625 if (Opc == Instruction::And && DL) {
649 if (Opc == Instruction::Sub && DL) {
750 if (CE && CE->getOpcode() == Instruction::Sub &&
795 if (CE->getOpcode() == Instruction::IntToPtr) {
894 Constant *llvm::ConstantFoldInstruction(Instruction *I,
936 // Fold the Instruction's operands.
1014 if (Instruction::isBinaryOp(Opcode)) {
1025 case Instruction::ICmp:
1026 case Instruction::FCmp: llvm_unreachable("Invalid for compares");
1027 case Instruction::Call:
1032 case Instruction::PtrToInt:
1036 if (TD && CE->getOpcode() == Instruction::IntToPtr) {
1051 case Instruction::IntToPtr:
1057 if (TD && CE->getOpcode() == Instruction::PtrToInt) {
1071 case Instruction::Trunc:
1072 case Instruction::ZExt:
1073 case Instruction::SExt:
1074 case Instruction::FPTrunc:
1075 case Instruction::FPExt:
1076 case Instruction::UIToFP:
1077 case Instruction::SIToFP:
1078 case Instruction::FPToUI:
1079 case Instruction::FPToSI:
1080 case Instruction::AddrSpaceCast:
1082 case Instruction::BitCast:
1086 case Instruction::Select:
1088 case Instruction::ExtractElement:
1090 case Instruction::InsertElement:
1092 case Instruction::ShuffleVector:
1094 case Instruction::GetElementPtr:
1121 if (CE0->getOpcode() == Instruction::IntToPtr) {
1133 if (CE0->getOpcode() == Instruction::PtrToInt) {
1145 if (CE0->getOpcode() == Instruction::IntToPtr) {
1159 if (CE0->getOpcode() == Instruction::PtrToInt) {
1176 CE0->getOpcode() == Instruction::Or && Ops1->isNullValue()) {
1184 Predicate == ICmpInst::ICMP_EQ ? Instruction::And : Instruction::Or;