OSDN Git Service

AMDGPU: Remove global isGCN predicates
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 3 Oct 2017 00:06:41 +0000 (00:06 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 3 Oct 2017 00:06:41 +0000 (00:06 +0000)
commit623647c9607afee8a3010494ccc52cb3c1d2c09b
tree2bd1f6294dffe4a42f96f9a3009c3574fbb53125
parentf7bb6862c7de232d24c399930ef921ecfe685824
AMDGPU: Remove global isGCN predicates

These are problematic because they apply to everything,
and can easily clobber whatever more specific predicate
you are trying to add to a function.

Currently instructions use SubtargetPredicate/PredicateControl
to apply this to patterns applied to an instruction definition,
but not to free standing Pats. Add a wrapper around Pat
so the special PredicateControls requirements can be appended
to the final predicate list like how Mips does it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314742 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
lib/Target/AMDGPU/AMDGPU.td
lib/Target/AMDGPU/AMDGPUInstructions.td
lib/Target/AMDGPU/BUFInstructions.td
lib/Target/AMDGPU/CaymanInstructions.td
lib/Target/AMDGPU/DSInstructions.td
lib/Target/AMDGPU/EvergreenInstructions.td
lib/Target/AMDGPU/FLATInstructions.td
lib/Target/AMDGPU/MIMGInstructions.td
lib/Target/AMDGPU/R600InstrFormats.td
lib/Target/AMDGPU/R600Instructions.td
lib/Target/AMDGPU/SIInstrFormats.td
lib/Target/AMDGPU/SIInstructions.td
lib/Target/AMDGPU/SMInstructions.td
lib/Target/AMDGPU/SOPInstructions.td
lib/Target/AMDGPU/VOP1Instructions.td
lib/Target/AMDGPU/VOP2Instructions.td
lib/Target/AMDGPU/VOP3Instructions.td
lib/Target/AMDGPU/VOP3PInstructions.td
lib/Target/AMDGPU/VOPCInstructions.td