[all-commits] [llvm/llvm-project] 09b887: AMDGPU/GlobalISel/Emitter Support for predicate co...
petar-avramovic via All-commits
all-commits at lists.llvm.org
Mon Sep 14 01:40:37 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 09b8871f8d81ce2777afe836604f392a2af9e620
https://github.com/llvm/llvm-project/commit/09b8871f8d81ce2777afe836604f392a2af9e620
Author: Petar Avramovic <Petar.Avramovic at amd.com>
Date: 2020-09-14 (Mon, 14 Sep 2020)
Changed paths:
M llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h
M llvm/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
M llvm/lib/Target/AMDGPU/VOP3Instructions.td
A llvm/test/CodeGen/AMDGPU/GlobalISel/add_shl.ll
M llvm/test/TableGen/GlobalISelEmitter.td
M llvm/test/TableGen/GlobalISelEmitterCustomPredicate.td
M llvm/utils/TableGen/GlobalISelEmitter.cpp
Log Message:
-----------
AMDGPU/GlobalISel/Emitter Support for predicate code that uses operands
Predicates with 'let PredicateCodeUsesOperands = 1' want to examine
matched operands. When we encounter predicate code that uses operands,
analyze its named operand arguments and create a map between argument
index and name. Later, when leaf node with name is encountered, emit
GIM_RecordNamedOperand that will store that operand at its argument
index in operand list. This operand list will be an argument to c++
code of the predicate.
Differential Revision: https://reviews.llvm.org/D87285
More information about the All-commits
mailing list