Lines Matching full:instruction
23 #include "llvm/IR/Instruction.h"
158 void printInstruction(const Instruction *I, const std::string& bbname);
815 if (CE->getOpcode() == Instruction::GetElementPtr) {
834 case Instruction::Trunc: Out << "Instruction::Trunc"; break;
835 case Instruction::ZExt: Out << "Instruction::ZExt"; break;
836 case Instruction::SExt: Out << "Instruction::SExt"; break;
837 case Instruction::FPTrunc: Out << "Instruction::FPTrunc"; break;
838 case Instruction::FPExt: Out << "Instruction::FPExt"; break;
839 case Instruction::FPToUI: Out << "Instruction::FPToUI"; break;
840 case Instruction::FPToSI: Out << "Instruction::FPToSI"; break;
841 case Instruction::UIToFP: Out << "Instruction::UIToFP"; break;
842 case Instruction::SIToFP: Out << "Instruction::SIToFP"; break;
843 case Instruction::PtrToInt: Out << "Instruction::PtrToInt"; break;
844 case Instruction::IntToPtr: Out << "Instruction::IntToPtr"; break;
845 case Instruction::BitCast: Out << "Instruction::BitCast"; break;
856 case Instruction::Add: Out << "getAdd("; break;
857 case Instruction::FAdd: Out << "getFAdd("; break;
858 case Instruction::Sub: Out << "getSub("; break;
859 case Instruction::FSub: Out << "getFSub("; break;
860 case Instruction::Mul: Out << "getMul("; break;
861 case Instruction::FMul: Out << "getFMul("; break;
862 case Instruction::UDiv: Out << "getUDiv("; break;
863 case Instruction::SDiv: Out << "getSDiv("; break;
864 case Instruction::FDiv: Out << "getFDiv("; break;
865 case Instruction::URem: Out << "getURem("; break;
866 case Instruction::SRem: Out << "getSRem("; break;
867 case Instruction::FRem: Out << "getFRem("; break;
868 case Instruction::And: Out << "getAnd("; break;
869 case Instruction::Or: Out << "getOr("; break;
870 case Instruction::Xor: Out << "getXor("; break;
871 case Instruction::ICmp:
887 case Instruction::FCmp:
909 case Instruction::Shl: Out << "getShl("; break;
910 case Instruction::LShr: Out << "getLShr("; break;
911 case Instruction::AShr: Out << "getAShr("; break;
912 case Instruction::Select: Out << "getSelect("; break;
913 case Instruction::ExtractElement: Out << "getExtractElement("; break;
914 case Instruction::InsertElement: Out << "getInsertElement("; break;
915 case Instruction::ShuffleVector: Out << "getShuffleVector("; break;
1051 if (!isa<Instruction>(V) || DefinedValues.find(V) != DefinedValues.end())
1094 // printInstruction - This member is called for each Instruction in a function.
1095 void CppWriter::printInstruction(const Instruction *I,
1099 // Before we emit this instruction, we need to take care of generating any
1108 error("Invalid instruction");
1111 case Instruction::Ret: {
1117 case Instruction::Br: {
1133 case Instruction::Switch: {
1151 case Instruction::IndirectBr: {
1162 case Instruction::Resume: {
1167 case Instruction::Invoke: {
1192 case Instruction::Unreachable: {
1198 case Instruction::Add:
1199 case Instruction::FAdd:
1200 case Instruction::Sub:
1201 case Instruction::FSub:
1202 case Instruction::Mul:
1203 case Instruction::FMul:
1204 case Instruction::UDiv:
1205 case Instruction::SDiv:
1206 case Instruction::FDiv:
1207 case Instruction::URem:
1208 case Instruction::SRem:
1209 case Instruction::FRem:
1210 case Instruction::And:
1211 case Instruction::Or:
1212 case Instruction::Xor:
1213 case Instruction::Shl:
1214 case Instruction::LShr:
1215 case Instruction::AShr:{
1218 case Instruction::Add: Out << "Instruction::Add"; break;
1219 case Instruction::FAdd: Out << "Instruction::FAdd"; break;
1220 case Instruction::Sub: Out << "Instruction::Sub"; break;
1221 case Instruction::FSub: Out << "Instruction::FSub"; break;
1222 case Instruction::Mul: Out << "Instruction::Mul"; break;
1223 case Instruction::FMul: Out << "Instruction::FMul"; break;
1224 case Instruction::UDiv:Out << "Instruction::UDiv"; break;
1225 case Instruction::SDiv:Out << "Instruction::SDiv"; break;
1226 case Instruction::FDiv:Out << "Instruction::FDiv"; break;
1227 case Instruction::URem:Out << "Instruction::URem"; break;
1228 case Instruction::SRem:Out << "Instruction::SRem"; break;
1229 case Instruction::FRem:Out << "Instruction::FRem"; break;
1230 case Instruction::And: Out << "Instruction::And"; break;
1231 case Instruction::Or: Out << "Instruction::Or"; break;
1232 case Instruction::Xor: Out << "Instruction::Xor"; break;
1233 case Instruction::Shl: Out << "Instruction::Shl"; break;
1234 case Instruction::LShr:Out << "Instruction::LShr"; break;
1235 case Instruction::AShr:Out << "Instruction::AShr"; break;
1236 default: Out << "Instruction::BadOpCode"; break;
1243 case Instruction::FCmp: {
1269 case Instruction::ICmp: {
1289 case Instruction::Alloca: {
1303 case Instruction::Load: {
1321 case Instruction::Store: {
1339 case Instruction::GetElementPtr: {
1354 Out << "Instruction* " << iName << " = GetElementPtrInst::Create("
1362 case Instruction::PHI: {
1379 case Instruction::Trunc:
1380 case Instruction::ZExt:
1381 case Instruction::SExt:
1382 case Instruction::FPTrunc:
1383 case Instruction::FPExt:
1384 case Instruction::FPToUI:
1385 case Instruction::FPToSI:
1386 case Instruction::UIToFP:
1387 case Instruction::SIToFP:
1388 case Instruction::PtrToInt:
1389 case Instruction::IntToPtr:
1390 case Instruction::BitCast: {
1394 case Instruction::Trunc: Out << "TruncInst"; break;
1395 case Instruction::ZExt: Out << "ZExtInst"; break;
1396 case Instruction::SExt: Out << "SExtInst"; break;
1397 case Instruction::FPTrunc: Out << "FPTruncInst"; break;
1398 case Instruction::FPExt: Out << "FPExtInst"; break;
1399 case Instruction::FPToUI: Out << "FPToUIInst"; break;
1400 case Instruction::FPToSI: Out << "FPToSIInst"; break;
1401 case Instruction::UIToFP: Out << "UIToFPInst"; break;
1402 case Instruction::SIToFP: Out << "SIToFPInst"; break;
1403 case Instruction::PtrToInt: Out << "PtrToIntInst"; break;
1404 case Instruction::IntToPtr: Out << "IntToPtrInst"; break;
1405 case Instruction::BitCast: Out << "BitCastInst"; break;
1414 case Instruction::Call: {
1455 case Instruction::Select: {
1463 case Instruction::UserOp1:
1465 case Instruction::UserOp2: {
1469 case Instruction::VAArg: {
1477 case Instruction::ExtractElement: {
1486 case Instruction::InsertElement: {
1495 case Instruction::ShuffleVector: {
1504 case Instruction::ExtractValue: {
1521 case Instruction::InsertValue: {
1538 case Instruction::Fence: {
1548 case Instruction::AtomicCmpXchg: {
1562 case Instruction::AtomicRMW: {
1615 // Print type definitions for every type referenced by an instruction and
1623 // Print the type of the instruction itself
1626 // Print the type of each of the instruction's operands