[all-commits] [llvm/llvm-project] ee78e0: AMDGPU: Avoid instantiating PatFrag with null_frag...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Mon Jan 8 22:10:50 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ee78e038667d89f5dcd5ed25a36659b3653095d0
https://github.com/llvm/llvm-project/commit/ee78e038667d89f5dcd5ed25a36659b3653095d0
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2024-01-09 (Tue, 09 Jan 2024)
Changed paths:
M llvm/lib/Target/AMDGPU/VOP3PInstructions.td
Log Message:
-----------
AMDGPU: Avoid instantiating PatFrag with null_frag (#77271)
This makes it possible to pass null_frag to the MAIInst multiclass.
null_frag does not work as you may hope if used as the input to a
PatFrag, which is what happens when it's passed through to *MAIFrag.
Avoid this by checking for null_frag. It might be possible to hack up
tablegen to allow consuming PatFrag inputs.
More information about the All-commits
mailing list