reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
  229   SwapVector.clear();
  230   SwapVector.reserve(InitialVectorSize);
  283           SwapVector[VecIdx].MentionsPartialVR = 1;
  285           SwapVector[VecIdx].IsSwappable = 1;
  302             SwapVector[VecIdx].IsSwap = 1;
  306             SwapVector[VecIdx].IsSwappable = 1;
  307             SwapVector[VecIdx].SpecialHandling = SHValues::SH_XXPERMDI;
  319           SwapVector[VecIdx].IsSwappable = 1;
  320           SwapVector[VecIdx].SpecialHandling = SHValues::SH_XXPERMDI;
  327             SwapVector[VecIdx].MentionsPhysVR = 0;
  331           SwapVector[VecIdx].IsSwappable = 1;
  332           SwapVector[VecIdx].SpecialHandling = SHValues::SH_XXPERMDI;
  341         SwapVector[VecIdx].IsLoad = 1;
  347         SwapVector[VecIdx].IsLoad = 1;
  348         SwapVector[VecIdx].IsSwap = 1;
  358         SwapVector[VecIdx].IsLoad = 1;
  359         SwapVector[VecIdx].IsSwappable = 1;
  366         SwapVector[VecIdx].IsStore = 1;
  372         SwapVector[VecIdx].IsStore = 1;
  373         SwapVector[VecIdx].IsSwap = 1;
  380           SwapVector[VecIdx].IsSwappable = 1;
  387           SwapVector[VecIdx].IsSwappable = 1;
  399           SwapVector[VecIdx].IsSwappable = 1;
  402           SwapVector[VecIdx].IsSwappable = 1;
  403           SwapVector[VecIdx].SpecialHandling = SHValues::SH_COPYWIDEN;
  413         SwapVector[VecIdx].IsSwappable = 1;
  414         SwapVector[VecIdx].SpecialHandling = SHValues::SH_SPLAT;
  539   SwapEntry.VSEId = SwapVector.size();
  540   SwapVector.push_back(SwapEntry);
  571       SwapVector[VecIdx].MentionsPhysVR = 1;
  589   for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) {
  591     MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
  593     LLVM_DEBUG(dbgs() << "\n" << SwapVector[EntryIdx].VSEId << " ");
  610           SwapVector[EntryIdx].MentionsPhysVR = 1;
  621       (void)EC->unionSets(SwapVector[DefIdx].VSEId,
  622                           SwapVector[EntryIdx].VSEId);
  625                                   SwapVector[DefIdx].VSEId,
  626                                   SwapVector[EntryIdx].VSEId));
  641   for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) {
  642     int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId);
  645     if (SwapVector[Repr].WebRejected)
  651     if (SwapVector[EntryIdx].MentionsPhysVR ||
  652         SwapVector[EntryIdx].MentionsPartialVR ||
  653         !(SwapVector[EntryIdx].IsSwappable || SwapVector[EntryIdx].IsSwap)) {
  653         !(SwapVector[EntryIdx].IsSwappable || SwapVector[EntryIdx].IsSwap)) {
  655       SwapVector[Repr].WebRejected = 1;
  662       LLVM_DEBUG(SwapVector[EntryIdx].VSEMI->dump());
  668     else if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) {
  668     else if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) {
  669       MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
  679         if (!SwapVector[UseIdx].IsSwap || SwapVector[UseIdx].IsLoad ||
  679         if (!SwapVector[UseIdx].IsSwap || SwapVector[UseIdx].IsLoad ||
  680             SwapVector[UseIdx].IsStore) {
  682           SwapVector[Repr].WebRejected = 1;
  696     } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) {
  696     } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) {
  697       MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
  703       if (!SwapVector[DefIdx].IsSwap || SwapVector[DefIdx].IsLoad ||
  703       if (!SwapVector[DefIdx].IsSwap || SwapVector[DefIdx].IsLoad ||
  704           SwapVector[DefIdx].IsStore) {
  706         SwapVector[Repr].WebRejected = 1;
  722         if (SwapVector[UseIdx].VSEMI->getOpcode() != MI->getOpcode()) {
  723           SwapVector[Repr].WebRejected = 1;
  732           LLVM_DEBUG(SwapVector[UseIdx].VSEMI->dump());
  752   for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) {
  754     if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) {
  754     if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) {
  755       int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId);
  757       if (!SwapVector[Repr].WebRejected) {
  758         MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
  763           SwapVector[UseIdx].WillRemove = 1;
  770     } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) {
  770     } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) {
  771       int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId);
  773       if (!SwapVector[Repr].WebRejected) {
  774         MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
  778         SwapVector[DefIdx].WillRemove = 1;
  784     } else if (SwapVector[EntryIdx].IsSwappable &&
  785                SwapVector[EntryIdx].SpecialHandling != 0) {
  786       int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId);
  788       if (!SwapVector[Repr].WebRejected)
  815   switch (SwapVector[EntryIdx].SpecialHandling) {
  823     MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
  862     MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
  892     MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
  946   for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) {
  947     if (SwapVector[EntryIdx].WillRemove) {
  949       MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
  956                                   SwapVector[EntryIdx].VSEId));
  970   for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) {
  972     MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
  973     int ID = SwapVector[EntryIdx].VSEId;
  980     if (SwapVector[EntryIdx].IsLoad)
  982     if (SwapVector[EntryIdx].IsStore)
  984     if (SwapVector[EntryIdx].IsSwap)
  986     if (SwapVector[EntryIdx].MentionsPhysVR)
  988     if (SwapVector[EntryIdx].MentionsPartialVR)
  991     if (SwapVector[EntryIdx].IsSwappable) {
  993       switch(SwapVector[EntryIdx].SpecialHandling) {
 1023     if (SwapVector[EntryIdx].WebRejected)
 1025     if (SwapVector[EntryIdx].WillRemove)