Lines Matching defs:Machine

678 ModuleSlotTracker::ModuleSlotTracker(SlotTracker &Machine, const Module *M,
680 : M(M), F(F), Machine(&Machine) {}
686 M(M), Machine(MachineStorage.get()) {}
691 if (!Machine)
698 Machine->purgeFunction();
699 Machine->incorporateFunction(&F);
705 return Machine->getLocalSlot(V);
992 SlotTracker *Machine,
997 SlotTracker *Machine, const Module *Context,
1086 SlotTracker *Machine,
1184 WriteAsOperandInternal(Out, BA->getFunction(), &TypePrinter, Machine,
1187 WriteAsOperandInternal(Out, BA->getBasicBlock(), &TypePrinter, Machine,
1199 &TypePrinter, Machine,
1205 WriteAsOperandInternal(Out, CA->getOperand(i), &TypePrinter, Machine,
1227 &TypePrinter, Machine,
1234 Machine, Context);
1251 WriteAsOperandInternal(Out, CS->getOperand(0), &TypePrinter, Machine,
1259 WriteAsOperandInternal(Out, CS->getOperand(i), &TypePrinter, Machine,
1277 Machine, Context);
1283 Machine, Context);
1319 WriteAsOperandInternal(Out, *OI, &TypePrinter, Machine, Context);
1343 TypePrinting *TypePrinter, SlotTracker *Machine,
1354 WriteAsOperandInternal(Out, V, TypePrinter, Machine, Context);
1356 WriteAsOperandInternal(Out, MD, TypePrinter, Machine, Context);
1382 SlotTracker *Machine;
1386 : Out(Out), TypePrinter(nullptr), Machine(nullptr), Context(nullptr) {}
1388 SlotTracker *Machine, const Module *Context)
1389 : Out(Out), TypePrinter(TypePrinter), Machine(Machine), Context(Context) {
1435 SlotTracker *Machine,
1441 WriteAsOperandInternal(Out, MD, TypePrinter, Machine, Context);
1450 writeMetadataAsOperand(Out, MD, TypePrinter, Machine, Context);
1498 TypePrinting *TypePrinter, SlotTracker *Machine,
1501 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1509 writeMetadataAsOperand(Out, I, TypePrinter, Machine, Context);
1517 TypePrinting *TypePrinter, SlotTracker *Machine,
1520 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1562 TypePrinting *TypePrinter, SlotTracker *Machine,
1565 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1583 SlotTracker *Machine, const Module *Context) {
1585 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1607 SlotTracker *Machine, const Module *Context) {
1609 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1628 TypePrinting *TypePrinter, SlotTracker *Machine,
1631 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1654 TypePrinting *TypePrinter, SlotTracker *Machine,
1657 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1680 TypePrinting *TypePrinter, SlotTracker *Machine,
1683 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1694 SlotTracker *Machine,
1697 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1706 TypePrinting *TypePrinter, SlotTracker *Machine,
1709 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1718 TypePrinting *TypePrinter, SlotTracker *Machine,
1721 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1730 TypePrinting *TypePrinter, SlotTracker *Machine,
1733 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1741 TypePrinting *TypePrinter, SlotTracker *Machine,
1744 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1757 SlotTracker *Machine,
1760 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1769 SlotTracker *Machine,
1772 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1783 SlotTracker *Machine, const Module *Context) {
1785 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1801 SlotTracker *Machine, const Module *Context) {
1803 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1815 TypePrinting *TypePrinter, SlotTracker *Machine,
1836 TypePrinting *TypePrinter, SlotTracker *Machine,
1839 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1852 SlotTracker *Machine, const Module *Context) {
1854 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context);
1866 SlotTracker *Machine,
1878 write##CLASS(Out, cast<CLASS>(Node), TypePrinter, Machine, Context); \
1888 SlotTracker *Machine,
1898 WriteConstantInternal(Out, CV, *TypePrinter, Machine, Context);
1920 WriteAsOperandInternal(Out, MD->getMetadata(), TypePrinter, Machine,
1928 if (Machine) {
1930 Slot = Machine->getGlobalSlot(GV);
1933 Slot = Machine->getLocalSlot(V);
1939 if ((Machine = createSlotTracker(V))) {
1940 Slot = Machine->getLocalSlot(V);
1941 delete Machine;
1944 } else if ((Machine = createSlotTracker(V))) {
1947 Slot = Machine->getGlobalSlot(GV);
1950 Slot = Machine->getLocalSlot(V);
1952 delete Machine;
1953 Machine = nullptr;
1966 SlotTracker *Machine, const Module *Context,
1970 if (!Machine) {
1972 Machine = MachineStorage.get();
1974 int Slot = Machine->getMetadataSlot(N);
1998 WriteAsOperandInternal(Out, V->getValue(), TypePrinter, Machine, Context);
2006 SlotTracker &Machine;
2070 : Out(o), TheModule(M), Machine(Mac), AnnotationWriter(AAW),
2093 WriteAsOperandInternal(Out, Operand, &TypePrinter, &Machine, TheModule);
2162 WriteAsOperandInternal(Out, Operand, &TypePrinter, &Machine, TheModule);
2193 WriteAsOperandInternal(Out, Input, &TypePrinter, &Machine, TheModule);
2203 Machine.initialize();
2268 if (!Machine.as_empty()) {
2280 if (!Machine.mdn_empty()) {
2314 int Slot = Machine.getMetadataSlot(NMD->getOperand(i));
2402 WriteAsOperandInternal(Out, GV, &TypePrinter, &Machine, GV->getParent());
2442 WriteAsOperandInternal(Out, GA, &TypePrinter, &Machine, GA->getParent());
2567 WriteAsOperandInternal(Out, F, &TypePrinter, &Machine, F->getParent());
2569 Machine.incorporateFunction(F);
2604 Out << " #" << Machine.getAttributeGroupSlot(Attrs.getFnAttributes());
2646 Machine.purgeFunction();
2677 int Slot = Machine.getLocalSlot(BB);
2760 int SlotNum = Machine.getLocalSlot(&I);
2969 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttributes());
3005 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttributes());
3138 WriteAsOperandInternal(Out, I.second, &TypePrinter, &Machine, TheModule);
3150 Nodes.resize(Machine.mdn_size());
3151 for (SlotTracker::mdn_iterator I = Machine.mdn_begin(), E = Machine.mdn_end();
3161 WriteMDNodeBodyInternal(Out, Node, &TypePrinter, &Machine, TheModule);
3166 asVec.resize(Machine.as_size());
3168 for (SlotTracker::as_iterator I = Machine.as_begin(), E = Machine.as_end();
3179 bool IsInFunction = Machine.getFunction();
3341 SlotTracker *Machine, const Module *M) {
3344 WriteAsOperandInternal(O, &V, nullptr, Machine, M);
3373 SlotTracker Machine(
3375 ModuleSlotTracker MST(Machine, M);