Home | History | Annotate | Download | only in Analysis

Lines Matching full:instruction

12 // to approximate the cost of any IR instruction when lowered to machine
50 /// Returns the expected cost of the instruction.
54 unsigned getInstructionCost(const Instruction *I) const;
185 // On level 0 we can omit one shufflevector instruction.
381 unsigned CostModelAnalysis::getInstructionCost(const Instruction *I) const {
386 case Instruction::GetElementPtr:{
391 case Instruction::Ret:
392 case Instruction::PHI:
393 case Instruction::Br: {
396 case Instruction::Add:
397 case Instruction::FAdd:
398 case Instruction::Sub:
399 case Instruction::FSub:
400 case Instruction::Mul:
401 case Instruction::FMul:
402 case Instruction::UDiv:
403 case Instruction::SDiv:
404 case Instruction::FDiv:
405 case Instruction::URem:
406 case Instruction::SRem:
407 case Instruction::FRem:
408 case Instruction::Shl:
409 case Instruction::LShr:
410 case Instruction::AShr:
411 case Instruction::And:
412 case Instruction::Or:
413 case Instruction::Xor: {
421 case Instruction::Select: {
426 case Instruction::ICmp:
427 case Instruction::FCmp: {
431 case Instruction::Store: {
438 case Instruction::Load: {
444 case Instruction::ZExt:
445 case Instruction::SExt:
446 case Instruction::FPToUI:
447 case Instruction::FPToSI:
448 case Instruction::FPExt:
449 case Instruction::PtrToInt:
450 case Instruction::IntToPtr:
451 case Instruction::SIToFP:
452 case Instruction::UIToFP:
453 case Instruction::Trunc:
454 case Instruction::FPTrunc:
455 case Instruction::BitCast:
456 case Instruction::AddrSpaceCast: {
460 case Instruction::ExtractElement: {
480 case Instruction::InsertElement: {
489 case Instruction::ShuffleVector: {
506 case Instruction::Call:
517 // We don't have any information on this instruction.
528 Instruction *Inst = it;
535 OS << " for instruction: "<< *Inst << "\n";