1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/lib/Target/NVPTX
Justin Lebar 06adb3808e [NVPTX] Add a truncate DAG node to some calls.
Summary:
Previously, we were running afoul of the assertion

  EVT(CLI.Ins[i].VT) == InVals[i].getValueType() && "LowerCall emitted a value with the wrong type!"

in SelectionDAGBuilder.cpp when running the NVPTX/i8-param.ll test.
This is because our backend (for some reason) treats small return values
as i32, but it wasn't ever truncating the i32 back down to the expected
width in the DAG.

Unclear to me whether this fixes any actual bugs -- in this test, at
least, the generated code is unchanged.

Reviewers: jingyue

Subscribers: llvm-commits, tra, jholewinski

Differential Revision: http://reviews.llvm.org/D17872

llvm-svn: 265091
2016-04-01 01:09:10 +00:00
..
InstPrinter Remove autoconf support 2016-01-26 21:29:08 +00:00
MCTargetDesc Remove autoconf support 2016-01-26 21:29:08 +00:00
TargetInfo Remove autoconf support 2016-01-26 21:29:08 +00:00
cl_common_defines.h
CMakeLists.txt [NVPTX] Adds a new address space inference pass. 2016-03-20 20:59:20 +00:00
LLVMBuild.txt
ManagedStringPool.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
NVPTX.h [NVPTX] Make NVVMReflect a function pass. 2016-03-30 20:40:11 +00:00
NVPTX.td [NVPTX] Associate a minimum PTX version for each SM architecture 2015-03-30 19:30:55 +00:00
NVPTXAllocaHoisting.cpp NVPTX: move NVPTXAllocaHoisting into the cpp file 2015-03-10 19:20:52 +00:00
NVPTXAllocaHoisting.h NVPTX: move NVPTXAllocaHoisting into the cpp file 2015-03-10 19:20:52 +00:00
NVPTXAsmPrinter.cpp IR: Reserve an MDKind for !llvm.loop; NFC 2016-03-25 00:35:38 +00:00
NVPTXAsmPrinter.h One more batch of self-containing headers. 2016-01-27 19:29:56 +00:00
NVPTXAssignValidGlobalNames.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
NVPTXFavorNonGenericAddrSpaces.cpp [NVPTX] Adds a new address space inference pass. 2016-03-20 20:59:20 +00:00
NVPTXFrameLowering.cpp Change eliminateCallFramePseudoInstr() to return an iterator 2016-03-31 18:33:38 +00:00
NVPTXFrameLowering.h Change eliminateCallFramePseudoInstr() to return an iterator 2016-03-31 18:33:38 +00:00
NVPTXGenericToNVVM.cpp GlobalValue: use getValueType() instead of getType()->getPointerElementType(). 2016-01-16 20:30:46 +00:00
NVPTXImageOptimizer.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
NVPTXInferAddressSpaces.cpp [NVPTX] Adds a new address space inference pass. 2016-03-20 20:59:20 +00:00
NVPTXInstrFormats.td
NVPTXInstrInfo.cpp CodeGen: TII: Take MachineInstr& in predicate API, NFC 2016-02-23 02:46:52 +00:00
NVPTXInstrInfo.h [NVPTX] Remove dead code. 2015-10-15 14:45:41 +00:00
NVPTXInstrInfo.td [NVPTX] Annotate some instructions as hasSideEffects = 0. 2016-04-01 01:09:05 +00:00
NVPTXIntrinsics.td [NVPTX] Annotate some instructions as hasSideEffects = 0. 2016-04-01 01:09:05 +00:00
NVPTXISelDAGToDAG.cpp [NVPTX] Use LDG for pointer induction variables. 2015-08-05 23:11:57 +00:00
NVPTXISelDAGToDAG.h Don't put classes in headers into anonymous namespaces. 2016-01-27 19:29:42 +00:00
NVPTXISelLowering.cpp [NVPTX] Add a truncate DAG node to some calls. 2016-04-01 01:09:10 +00:00
NVPTXISelLowering.h [NVPTX] Use different, convergent MIs for convergent calls. 2016-03-01 19:24:03 +00:00
NVPTXLowerAggrCopies.cpp NVPTX: Remove implicit ilist iterator conversions, NFC 2015-10-20 00:54:09 +00:00
NVPTXLowerAggrCopies.h Move unreferenced passes into the cpp file 2015-03-09 15:50:58 +00:00
NVPTXLowerAlloca.cpp Fix some comment typos. 2015-08-08 18:27:36 +00:00
NVPTXLowerKernelArgs.cpp Put space after pointer type in test. NFC. 2016-01-23 05:47:34 +00:00
NVPTXMachineFunctionInfo.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
NVPTXMCExpr.cpp MC: Add target hook to control symbol quoting 2015-06-09 00:31:39 +00:00
NVPTXMCExpr.h Fix pr24486. 2015-10-05 12:07:05 +00:00
NVPTXPeephole.cpp [NVPTX] Move NVPTXPeephole after NVPTXPrologEpilogPass 2015-07-01 20:08:06 +00:00
NVPTXPrologEpilogPass.cpp MachineBasicBlock: Factor out common code into isReturnBlock() 2015-09-25 21:25:19 +00:00
NVPTXRegisterInfo.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
NVPTXRegisterInfo.h Have getCalleeSavedRegs take a non-null MachineFunction all the 2015-03-11 21:41:28 +00:00
NVPTXRegisterInfo.td Add NVPTXPeephole pass to reduce unnecessary address cast 2015-06-24 20:20:16 +00:00
NVPTXReplaceImageHandles.cpp Cosmetic cleanups - NFC 2015-07-08 16:33:21 +00:00
NVPTXSection.h Use non virtual destructors for sections. 2015-10-07 13:46:06 +00:00
NVPTXSubtarget.cpp Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
NVPTXSubtarget.h Rename TargetSelectionDAGInfo into SelectionDAGTargetInfo and move it to CodeGen/ 2016-01-27 16:32:26 +00:00
NVPTXTargetMachine.cpp Introduce MachineFunctionProperties and the AllVRegsAllocated property 2016-03-28 17:05:30 +00:00
NVPTXTargetMachine.h Rename TargetSelectionDAGInfo into SelectionDAGTargetInfo and move it to CodeGen/ 2016-01-27 16:32:26 +00:00
NVPTXTargetObjectFile.h Unbreak non-X86 targets from fallout caused by r261462 2016-02-21 01:40:04 +00:00
NVPTXTargetTransformInfo.cpp [TTI] Make the cost APIs in TargetTransformInfo consistently use 'int' 2015-08-05 18:08:10 +00:00
NVPTXTargetTransformInfo.h [TTI] Make the cost APIs in TargetTransformInfo consistently use 'int' 2015-08-05 18:08:10 +00:00
NVPTXUtilities.cpp NVPTX: Remove implicit ilist iterator conversions, NFC 2015-10-20 00:54:09 +00:00
NVPTXUtilities.h [NVPTX] Remove dead code. 2015-10-15 14:45:41 +00:00
NVPTXVector.td Start replacing vector_extract/vector_insert with extractelt/insertelt 2015-12-11 19:20:16 +00:00
NVVMReflect.cpp [NVPTX] Read __CUDA_FTZ from module flags in NVVMReflect. 2016-04-01 01:09:07 +00:00