Lines Matching defs:Slot
544 // SlotTracker Class: Enumerate slot numbers for unnamed values
546 /// This class provides computation of slot numbers for LLVM Assembly writing.
550 /// ValueMap - A mapping of Values to slot numbers.
554 /// TheModule - The module for which we are holding slot numbers.
557 /// TheFunction - The function for which we are holding slot numbers.
562 /// mMap - The slot map for the module level data.
566 /// fMap - The slot map for the function level data.
574 /// asMap - The slot map for attribute sets.
593 /// Return the slot number of the specified value in it's type
633 /// CreateModuleSlot - Insert the specified GlobalValue* into the slot table.
636 /// CreateMetadataSlot - Insert the specified MDNode* into the slot table.
639 /// CreateFunctionSlot - Insert the specified Value* into the slot table.
642 /// \brief Insert the specified AttributeSet into the slot table.
697 // to be added to the slot table.
704 // function provided to be added to the slot table.
830 /// the function incorporation state that affects get*Slot/Create*Slot. Function
840 /// getGlobalSlot - Get the slot number of a global value.
850 /// getMetadataSlot - Get the slot number of a MDNode.
861 /// getLocalSlot - Get the slot number for a value that is local to a function.
863 assert(!isa<Constant>(V) && "Can't get a constant or global slot with this!");
881 /// CreateModuleSlot - Insert the specified GlobalValue* into the slot table.
884 assert(!V->getType()->isVoidTy() && "Doesn't need a slot!");
885 assert(!V->hasName() && "Doesn't need a slot!");
890 ST_DEBUG(" Inserting value [" << V->getType() << "] = " << V << " slot=" <<
898 /// CreateSlot - Create a new slot for the specified value if it has no name.
900 assert(!V->getType()->isVoidTy() && !V->hasName() && "Doesn't need a slot!");
906 ST_DEBUG(" Inserting value [" << V->getType() << "] = " << V << " slot=" <<
910 /// CreateModuleSlot - Insert the specified MDNode* into the slot table.
927 "Doesn't need a slot!");
1863 int Slot;
1867 Slot = Machine->getGlobalSlot(GV);
1870 Slot = Machine->getLocalSlot(V);
1875 if (Slot == -1)
1877 Slot = Machine->getLocalSlot(V);
1884 Slot = Machine->getGlobalSlot(GV);
1887 Slot = Machine->getLocalSlot(V);
1892 Slot = -1;
1895 if (Slot != -1)
1896 Out << Prefix << Slot;
1908 int Slot = Machine->getMetadataSlot(N);
1909 if (Slot == -1)
1914 Out << '!' << Slot;
1971 void writeMDNode(unsigned Slot, const MDNode *Node);
1991 // which slot it occupies.
2224 int Slot = Machine.getMetadataSlot(NMD->getOperand(i));
2225 if (Slot == -1)
2228 Out << '!' << Slot;
2583 int Slot = Machine.getLocalSlot(BB);
2584 if (Slot != -1)
2585 Out << Slot;
2630 /// which slot it occupies.
2649 // Print out the def slot taken.
2980 void AssemblyWriter::writeMDNode(unsigned Slot, const MDNode *Node) {
2981 Out << '!' << Slot << " = ";