1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 21:13:02 +02:00
llvm-mirror/lib/Target/NVPTX
Duncan P. N. Exon Smith 4a31e38dc3 NVPTX: Avoid implicit iterator conversions, NFC
Avoid implicit conversions from MachineInstrBundleIterator to
MachineInstr* in the NVPTX backend, mainly by preferring MachineInstr&
over MachineInstr* when a pointer isn't nullable and using range-based
for loops.

There was one piece of questionable code in
NVPTXInstrInfo::AnalyzeBranch, where a condition checked a pointer
converted from an iterator for nullptr.  Since this case is impossible
(moreover, the code above guarantees that the iterator is valid), I
removed the check when I changed the pointer to a reference.

Despite that case, there should be no functionality change here.

llvm-svn: 274931
2016-07-08 21:10:58 +00:00
..
InstPrinter
MCTargetDesc Delete MCCodeGenInfo. 2016-06-30 18:25:11 +00:00
TargetInfo
cl_common_defines.h
CMakeLists.txt [NVPTX] Added NVVMIntrRange pass 2016-05-26 17:02:56 +00:00
LLVMBuild.txt
ManagedStringPool.h
NVPTX.h [NVPTX] Added NVVMIntrRange pass 2016-05-26 17:02:56 +00:00
NVPTX.td [NVPTX] Add sm_60, sm_61, sm_62 targets to LLVM. 2016-07-06 21:06:10 +00:00
NVPTXAllocaHoisting.cpp
NVPTXAllocaHoisting.h
NVPTXAsmPrinter.cpp Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
NVPTXAsmPrinter.h Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
NVPTXAssignValidGlobalNames.cpp
NVPTXFavorNonGenericAddrSpaces.cpp
NVPTXFrameLowering.cpp NVPTX: Avoid implicit iterator conversions, NFC 2016-07-08 21:10:58 +00:00
NVPTXFrameLowering.h
NVPTXGenericToNVVM.cpp Use arrays or initializer lists to feed ArrayRefs instead of SmallVector where possible. 2016-07-02 11:41:39 +00:00
NVPTXImageOptimizer.cpp
NVPTXInferAddressSpaces.cpp
NVPTXInstrFormats.td
NVPTXInstrInfo.cpp NVPTX: Avoid implicit iterator conversions, NFC 2016-07-08 21:10:58 +00:00
NVPTXInstrInfo.h Pass DebugLoc and SDLoc by const ref. 2016-06-12 15:39:02 +00:00
NVPTXInstrInfo.td
NVPTXIntrinsics.td NVPTX: Remove the legacy ptx intrinsics 2016-07-07 16:40:17 +00:00
NVPTXISelDAGToDAG.cpp Revert r273313 "[NVPTX] Improve lowering of byval args of device functions." 2016-06-29 20:51:15 +00:00
NVPTXISelDAGToDAG.h Pass DebugLoc and SDLoc by const ref. 2016-06-12 15:39:02 +00:00
NVPTXISelLowering.cpp Revert r273313 "[NVPTX] Improve lowering of byval args of device functions." 2016-06-29 20:51:15 +00:00
NVPTXISelLowering.h Pass DebugLoc and SDLoc by const ref. 2016-06-12 15:39:02 +00:00
NVPTXLowerAggrCopies.cpp
NVPTXLowerAggrCopies.h
NVPTXLowerAlloca.cpp
NVPTXLowerKernelArgs.cpp Revert r273313 "[NVPTX] Improve lowering of byval args of device functions." 2016-06-29 20:51:15 +00:00
NVPTXMachineFunctionInfo.h
NVPTXMCExpr.cpp Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
NVPTXMCExpr.h Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
NVPTXPeephole.cpp
NVPTXPrologEpilogPass.cpp NVPTX: Avoid implicit iterator conversions, NFC 2016-07-08 21:10:58 +00:00
NVPTXRegisterInfo.cpp
NVPTXRegisterInfo.h
NVPTXRegisterInfo.td
NVPTXReplaceImageHandles.cpp
NVPTXSection.h
NVPTXSubtarget.cpp
NVPTXSubtarget.h
NVPTXTargetMachine.cpp [NVPTX] Added NVVMIntrRange pass 2016-05-26 17:02:56 +00:00
NVPTXTargetMachine.h
NVPTXTargetObjectFile.h
NVPTXTargetTransformInfo.cpp NVPTX: Remove the legacy ptx intrinsics 2016-07-07 16:40:17 +00:00
NVPTXTargetTransformInfo.h
NVPTXUtilities.cpp Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
NVPTXUtilities.h Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
NVPTXVector.td
NVVMIntrRange.cpp NVPTX: Remove the legacy ptx intrinsics 2016-07-07 16:40:17 +00:00
NVVMReflect.cpp [NVPTX] Don't (incorrectly) say that the NVVMReflect pass preserves all analyses. 2016-05-25 23:12:38 +00:00