Home | History | Annotate | Download | only in IR

Lines Matching refs:Slot

298 // SlotTracker Class: Enumerate slot numbers for unnamed values
300 /// This class provides computation of slot numbers for LLVM Assembly writing.
304 /// ValueMap - A mapping of Values to slot numbers.
308 /// TheModule - The module for which we are holding slot numbers.
311 /// TheFunction - The function for which we are holding slot numbers.
315 /// mMap - The slot map for the module level data.
319 /// fMap - The slot map for the function level data.
327 /// asMap - The slot map for attribute sets.
336 /// Return the slot number of the specified value in it's type
374 /// CreateModuleSlot - Insert the specified GlobalValue* into the slot table.
377 /// CreateMetadataSlot - Insert the specified MDNode* into the slot table.
380 /// CreateFunctionSlot - Insert the specified Value* into the slot table.
383 /// \brief Insert the specified AttributeSet into the slot table.
438 // to be added to the slot table.
445 // function provided to be added to the slot table.
559 /// the function incorporation state that affects get*Slot/Create*Slot. Function
569 /// getGlobalSlot - Get the slot number of a global value.
579 /// getMetadataSlot - Get the slot number of a MDNode.
590 /// getLocalSlot - Get the slot number for a value that is local to a function.
592 assert(!isa<Constant>(V) && "Can't get a constant or global slot with this!");
610 /// CreateModuleSlot - Insert the specified GlobalValue* into the slot table.
613 assert(!V->getType()->isVoidTy() && "Doesn't need a slot!");
614 assert(!V->hasName() && "Doesn't need a slot!");
619 ST_DEBUG(" Inserting value [" << V->getType() << "] = " << V << " slot=" <<
627 /// CreateSlot - Create a new slot for the specified value if it has no name.
629 assert(!V->getType()->isVoidTy() && !V->hasName() && "Doesn't need a slot!");
635 ST_DEBUG(" Inserting value [" << V->getType() << "] = " << V << " slot=" <<
639 /// CreateModuleSlot - Insert the specified MDNode* into the slot table.
662 "Doesn't need a slot!");
1104 // Print metadata inline, not via slot reference number.
1115 int Slot = Machine->getMetadataSlot(N);
1116 if (Slot == -1)
1119 Out << '!' << Slot;
1131 int Slot;
1135 Slot = Machine->getGlobalSlot(GV);
1138 Slot = Machine->getLocalSlot(V);
1143 if (Slot == -1)
1145 Slot = Machine->getLocalSlot(V);
1152 Slot = Machine->getGlobalSlot(GV);
1155 Slot = Machine->getLocalSlot(V);
1160 Slot = -1;
1163 if (Slot != -1)
1164 Out << Prefix << Slot;
1390 int Slot = Machine.getMetadataSlot(NMD->getOperand(i));
1391 if (Slot == -1)
1394 Out << '!' << Slot;
1730 int Slot = Machine.getLocalSlot(BB);
1731 if (Slot != -1)
1732 Out << Slot;
1777 /// which slot it occupies.
1796 // Print out the def slot taken.
2134 void AssemblyWriter::writeMDNode(unsigned Slot, const MDNode *Node) {
2135 Out << '!' << Slot << " = metadata ";