Home | History | Annotate | Download | only in CppBackend

Lines Matching full:instruction

24 #include "llvm/IR/Instruction.h"
163 void printInstruction(const Instruction *I, const std::string& bbname);
828 if (CE->getOpcode() == Instruction::GetElementPtr) {
847 case Instruction::Trunc: Out << "Instruction::Trunc"; break;
848 case Instruction::ZExt: Out << "Instruction::ZExt"; break;
849 case Instruction::SExt: Out << "Instruction::SExt"; break;
850 case Instruction::FPTrunc: Out << "Instruction::FPTrunc"; break;
851 case Instruction::FPExt: Out << "Instruction::FPExt"; break;
852 case Instruction::FPToUI: Out << "Instruction::FPToUI"; break;
853 case Instruction::FPToSI: Out << "Instruction::FPToSI"; break;
854 case Instruction::UIToFP: Out << "Instruction::UIToFP"; break;
855 case Instruction::SIToFP: Out << "Instruction::SIToFP"; break;
856 case Instruction::PtrToInt: Out << "Instruction::PtrToInt"; break;
857 case Instruction::IntToPtr: Out << "Instruction::IntToPtr"; break;
858 case Instruction::BitCast: Out << "Instruction::BitCast"; break;
869 case Instruction::Add: Out << "getAdd("; break;
870 case Instruction::FAdd: Out << "getFAdd("; break;
871 case Instruction::Sub: Out << "getSub("; break;
872 case Instruction::FSub: Out << "getFSub("; break;
873 case Instruction::Mul: Out << "getMul("; break;
874 case Instruction::FMul: Out << "getFMul("; break;
875 case Instruction::UDiv: Out << "getUDiv("; break;
876 case Instruction::SDiv: Out << "getSDiv("; break;
877 case Instruction::FDiv: Out << "getFDiv("; break;
878 case Instruction::URem: Out << "getURem("; break;
879 case Instruction::SRem: Out << "getSRem("; break;
880 case Instruction::FRem: Out << "getFRem("; break;
881 case Instruction::And: Out << "getAnd("; break;
882 case Instruction::Or: Out << "getOr("; break;
883 case Instruction::Xor: Out << "getXor("; break;
884 case Instruction::ICmp:
900 case Instruction::FCmp:
922 case Instruction::Shl: Out << "getShl("; break;
923 case Instruction::LShr: Out << "getLShr("; break;
924 case Instruction::AShr: Out << "getAShr("; break;
925 case Instruction::Select: Out << "getSelect("; break;
926 case Instruction::ExtractElement: Out << "getExtractElement("; break;
927 case Instruction::InsertElement: Out << "getInsertElement("; break;
928 case Instruction::ShuffleVector: Out << "getShuffleVector("; break;
1071 if (!isa<Instruction>(V) || DefinedValues.find(V) != DefinedValues.end())
1114 // printInstruction - This member is called for each Instruction in a function.
1115 void CppWriter::printInstruction(const Instruction *I,
1119 // Before we emit this instruction, we need to take care of generating any
1128 error("Invalid instruction");
1131 case Instruction::Ret: {
1137 case Instruction::Br: {
1153 case Instruction::Switch: {
1171 case Instruction::IndirectBr: {
1182 case Instruction::Resume: {
1186 case Instruction::Invoke: {
1211 case Instruction::Unreachable: {
1217 case Instruction::Add:
1218 case Instruction::FAdd:
1219 case Instruction::Sub:
1220 case Instruction::FSub:
1221 case Instruction::Mul:
1222 case Instruction::FMul:
1223 case Instruction::UDiv:
1224 case Instruction::SDiv:
1225 case Instruction::FDiv:
1226 case Instruction::URem:
1227 case Instruction::SRem:
1228 case Instruction::FRem:
1229 case Instruction::And:
1230 case Instruction::Or:
1231 case Instruction::Xor:
1232 case Instruction::Shl:
1233 case Instruction::LShr:
1234 case Instruction::AShr:{
1237 case Instruction::Add: Out << "Instruction::Add"; break;
1238 case Instruction::FAdd: Out << "Instruction::FAdd"; break;
1239 case Instruction::Sub: Out << "Instruction::Sub"; break;
1240 case Instruction::FSub: Out << "Instruction::FSub"; break;
1241 case Instruction::Mul: Out << "Instruction::Mul"; break;
1242 case Instruction::FMul: Out << "Instruction::FMul"; break;
1243 case Instruction::UDiv:Out << "Instruction::UDiv"; break;
1244 case Instruction::SDiv:Out << "Instruction::SDiv"; break;
1245 case Instruction::FDiv:Out << "Instruction::FDiv"; break;
1246 case Instruction::URem:Out << "Instruction::URem"; break;
1247 case Instruction::SRem:Out << "Instruction::SRem"; break;
1248 case Instruction::FRem:Out << "Instruction::FRem"; break;
1249 case Instruction::And: Out << "Instruction::And"; break;
1250 case Instruction::Or: Out << "Instruction::Or"; break;
1251 case Instruction::Xor: Out << "Instruction::Xor"; break;
1252 case Instruction::Shl: Out << "Instruction::Shl"; break;
1253 case Instruction::LShr:Out << "Instruction::LShr"; break;
1254 case Instruction::AShr:Out << "Instruction::AShr"; break;
1255 default: Out << "Instruction::BadOpCode"; break;
1262 case Instruction::FCmp: {
1288 case Instruction::ICmp: {
1308 case Instruction::Alloca: {
1322 case Instruction::Load: {
1340 case Instruction::Store: {
1358 case Instruction::GetElementPtr: {
1373 Out << "Instruction* " << iName << " = GetElementPtrInst::Create("
1381 case Instruction::PHI: {
1398 case Instruction::Trunc:
1399 case Instruction::ZExt:
1400 case Instruction::SExt:
1401 case Instruction::FPTrunc:
1402 case Instruction::FPExt:
1403 case Instruction::FPToUI:
1404 case Instruction::FPToSI:
1405 case Instruction::UIToFP:
1406 case Instruction::SIToFP:
1407 case Instruction::PtrToInt:
1408 case Instruction::IntToPtr:
1409 case Instruction::BitCast: {
1413 case Instruction::Trunc: Out << "TruncInst"; break;
1414 case Instruction::ZExt: Out << "ZExtInst"; break;
1415 case Instruction::SExt: Out << "SExtInst"; break;
1416 case Instruction::FPTrunc: Out << "FPTruncInst"; break;
1417 case Instruction::FPExt: Out << "FPExtInst"; break;
1418 case Instruction::FPToUI: Out << "FPToUIInst"; break;
1419 case Instruction::FPToSI: Out << "FPToSIInst"; break;
1420 case Instruction::UIToFP: Out << "UIToFPInst"; break;
1421 case Instruction::SIToFP: Out << "SIToFPInst"; break;
1422 case Instruction::PtrToInt: Out << "PtrToIntInst"; break;
1423 case Instruction::IntToPtr: Out << "IntToPtrInst"; break;
1424 case Instruction::BitCast: Out << "BitCastInst"; break;
1433 case Instruction::Call: {
1474 case Instruction::Select: {
1482 case Instruction::UserOp1:
1484 case Instruction::UserOp2: {
1488 case Instruction::VAArg: {
1496 case Instruction::ExtractElement: {
1505 case Instruction::InsertElement: {
1514 case Instruction::ShuffleVector: {
1523 case Instruction::ExtractValue: {
1540 case Instruction::InsertValue: {
1557 case Instruction::Fence: {
1567 case Instruction::AtomicCmpXchg: {
1589 case Instruction::AtomicRMW: {
1621 case Instruction::LandingPad: {
1658 // Print type definitions for every type referenced by an instruction and
1666 // Print the type of the instruction itself
1669 // Print the type of each of the instruction's operands