llvm-project/llvm/lib/Target/AMDGPU
Jan Vesely 3bc1af2be4 AMDGPU/R600: Fix GlobalValue regressions.
Don't cast GV expression to MCSymbolRefExpr. r272705 changed GV to binary
expressions by including offset even if the offset it 0
(we haven't hit this sooner since tested workloads don't include static offsets)
We don't really care about the type of expression, so set it directly.
Fixes: r272705

Consider section relative relocations. Since all const as data is in one boffer section relative is equivalent to abs32.
Fixes: r273166

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

llvm-svn: 273785
2016-06-25 18:24:16 +00:00
..
AsmParser [AMDGPU] Enable absolute expression initializer for amd_kernel_code_t fields. 2016-06-23 14:13:06 +00:00
Disassembler AMDGPU: Fix trailing whitespace 2016-06-10 02:18:02 +00:00
InstPrinter [AMDGPU] AsmParser: Support for sext() modifier in SDWA. Some code cleaning in AMDGPUOperand. 2016-06-10 09:57:59 +00:00
MCTargetDesc AMDGPU/R600: Fix GlobalValue regressions. 2016-06-25 18:24:16 +00:00
TargetInfo Remove autoconf support 2016-01-26 21:29:08 +00:00
Utils [AMDGPU] Enable absolute expression initializer for amd_kernel_code_t fields. 2016-06-23 14:13:06 +00:00
AMDGPU.h AMDGPU: Add stub custom CodeGenPrepare pass 2016-06-24 07:07:55 +00:00
AMDGPU.td [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
AMDGPUAlwaysInlinePass.cpp Cloning: Clean up the interface to the CloneFunction function. 2016-05-10 20:23:24 +00:00
AMDGPUAnnotateKernelFeatures.cpp AMDGPU: Fix constantexpr addrspacecasts 2016-06-06 20:03:31 +00:00
AMDGPUAnnotateUniformValues.cpp Add optimization bisect opt-in calls for AMDGPU passes 2016-04-25 22:23:44 +00:00
AMDGPUAsmPrinter.cpp [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
AMDGPUAsmPrinter.h [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
AMDGPUCallLowering.cpp AMDGPU: Add skeleton GlobalIsel implementation 2016-04-14 19:09:28 +00:00
AMDGPUCallLowering.h AMDGPU: Add skeleton GlobalIsel implementation 2016-04-14 19:09:28 +00:00
AMDGPUCallingConv.td AMDGPU: Fix kernel argument alignment impacting stack size 2016-06-18 05:15:53 +00:00
AMDGPUCodeGenPrepare.cpp AMDGPU: Add stub custom CodeGenPrepare pass 2016-06-24 07:07:55 +00:00
AMDGPUFrameLowering.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPUFrameLowering.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPUISelDAGToDAG.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPUISelLowering.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPUISelLowering.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPUInstrInfo.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPUInstrInfo.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPUInstrInfo.td AMDGPU: Fix verifier errors in SILowerControlFlow 2016-06-22 20:15:28 +00:00
AMDGPUInstructions.td AMDGPU: Fix trailing whitespace 2016-06-10 02:18:02 +00:00
AMDGPUIntrinsicInfo.cpp [llvm-tblgen] Avoid StringMatcher for GCC and MS builtin names 2016-01-27 01:43:12 +00:00
AMDGPUIntrinsicInfo.h AMDGPU: R600 code splitting cleanup 2016-03-11 08:00:27 +00:00
AMDGPUIntrinsics.td AMDGPU: Remove bfi and bfm intrinsics 2016-02-08 19:06:01 +00:00
AMDGPUMCInstLower.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPUMCInstLower.h AMDGPU: R600 code splitting cleanup 2016-03-11 08:00:27 +00:00
AMDGPUMachineFunction.cpp AMDGPU: Fix kernel argument alignment impacting stack size 2016-06-18 05:15:53 +00:00
AMDGPUMachineFunction.h AMDGPU: Fix kernel argument alignment impacting stack size 2016-06-18 05:15:53 +00:00
AMDGPUOpenCLImageTypeLoweringPass.cpp [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
AMDGPUPromoteAlloca.cpp IR: Introduce local_unnamed_addr attribute. 2016-06-14 21:01:22 +00:00
AMDGPURegisterInfo.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPURegisterInfo.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPURegisterInfo.td AMDGPU: Set SubRegIndex size and offset 2015-07-30 17:03:11 +00:00
AMDGPUSubtarget.cpp [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
AMDGPUSubtarget.h [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
AMDGPUTargetMachine.cpp AMDGPU: Add stub custom CodeGenPrepare pass 2016-06-24 07:07:55 +00:00
AMDGPUTargetMachine.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDGPUTargetObjectFile.cpp AMDGPU/SI: Add support for AMD code object version 2. 2016-05-05 17:03:33 +00:00
AMDGPUTargetObjectFile.h AMDGPU/SI: Add support for AMD code object version 2. 2016-05-05 17:03:33 +00:00
AMDGPUTargetTransformInfo.cpp AMDGPU: Remove llvm.SI.tid intrinsic 2016-06-17 21:18:41 +00:00
AMDGPUTargetTransformInfo.h AMDGPU: Other sizes of popcnt are fast 2016-05-18 16:10:19 +00:00
AMDILCFGStructurizer.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
AMDKernelCodeT.h [AMDGPU] fix amd_kernel_code_t bit field position as per spec (added missing reserved fields) 2016-02-24 10:54:25 +00:00
CIInstructions.td AMDGPU: Fix flat atomics 2016-06-09 23:42:54 +00:00
CMakeLists.txt AMDGPU: Add stub custom CodeGenPrepare pass 2016-06-24 07:07:55 +00:00
CaymanInstructions.td AMDGPU/EG,CM: Add instruction to read from constant AS (VTX2) 2016-05-13 20:39:16 +00:00
EvergreenInstructions.td AMDGPU/EG,CM: Add instruction to read from constant AS (VTX2) 2016-05-13 20:39:16 +00:00
GCNHazardRecognizer.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
GCNHazardRecognizer.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
LLVMBuild.txt [AMDGPU] Disassembler: Added basic disassembler for AMDGPU target 2016-02-18 03:42:32 +00:00
Processors.td AMDGPU: Fix crashes on unknown processor name 2016-06-02 18:37:16 +00:00
R600ClauseMergePass.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600ControlFlowFinalizer.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600Defines.h AMDGPU: R600 code splitting cleanup 2016-03-11 08:00:27 +00:00
R600EmitClauseMarkers.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600ExpandSpecialInstrs.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600FrameLowering.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600FrameLowering.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600ISelLowering.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600ISelLowering.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600InstrFormats.td
R600InstrInfo.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600InstrInfo.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600Instructions.td AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600Intrinsics.td AMDGPU: Move AMDGPU intrinsics only used by R600 2016-01-26 04:49:24 +00:00
R600MachineFunctionInfo.cpp
R600MachineFunctionInfo.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
R600MachineScheduler.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600MachineScheduler.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600OptimizeVectorRegisters.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600Packetizer.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600RegisterInfo.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600RegisterInfo.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
R600RegisterInfo.td
R600Schedule.td AMDGPU: Fix trailing whitespace 2016-06-10 02:18:02 +00:00
R600TextureIntrinsicsReplacer.cpp AMDGPU: Rename some r600 intrinsics to use correct TargetPrefix 2016-01-22 19:00:09 +00:00
R700Instructions.td
SIAnnotateControlFlow.cpp AMDGPU: Fix trailing whitespace 2016-06-10 02:18:02 +00:00
SIDebuggerInsertNops.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIDefines.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIFixControlFlowLiveIntervals.cpp AMDGPU: Remove unused includes 2015-09-25 00:28:43 +00:00
SIFixSGPRCopies.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIFoldOperands.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIFrameLowering.cpp [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
SIFrameLowering.h [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
SIISelLowering.cpp [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
SIISelLowering.h [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
SIInsertWaits.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIInstrFormats.td AMDGPU: Fix verifier errors in SILowerControlFlow 2016-06-22 20:15:28 +00:00
SIInstrInfo.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIInstrInfo.h AMDGPU: Define a schedule class for COPY. 2016-06-24 23:52:11 +00:00
SIInstrInfo.td AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIInstructions.td AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIIntrinsics.td AMDGPU: Remove llvm.SI.tid intrinsic 2016-06-17 21:18:41 +00:00
SILoadStoreOptimizer.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SILowerControlFlow.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SILowerI1Copies.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIMachineFunctionInfo.cpp [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
SIMachineFunctionInfo.h [AMDGPU] Emit debugger prologue and emit the rest of the debugger fields in the kernel code header 2016-06-25 03:11:28 +00:00
SIMachineScheduler.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIMachineScheduler.h AMDGPU: R600 code splitting cleanup 2016-03-11 08:00:27 +00:00
SIRegisterInfo.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIRegisterInfo.h AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SIRegisterInfo.td AMDGPU: Define priorities for register classes 2016-05-21 03:55:07 +00:00
SISchedule.td AMDGPU: Define a schedule class for COPY. 2016-06-24 23:52:11 +00:00
SIShrinkInstructions.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
SITypeRewriter.cpp AMDGPU: Add a shader calling convention 2016-04-06 19:40:20 +00:00
SIWholeQuadMode.cpp AMDGPU: Cleanup subtarget handling. 2016-06-24 06:30:11 +00:00
VIInstrFormats.td [AMDGPU] Assembler: More tests for SDWA instructions. Fix for SDWA float modifiers. 2016-06-03 11:43:09 +00:00
VIInstructions.td AMDGPU: Add v_mad 16-bit instructions definition. 2016-06-16 16:50:04 +00:00