[PATCH] D109852: [IR] Return AAMDNodes from Instruction::getMetadata() (NFC)
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 15 14:03:39 PDT 2021
nikic created this revision.
nikic added reviewers: jdoerfert, jeroen.dobbelaere.
Herald added a reviewer: bollu.
Herald added subscribers: ormris, dexonsmith, asbirlea, hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
getMetadata() currently uses a weird API where it populates a structure passed to it, and optionally merges into it. Instead, we can return the AAMDNodes and provide a separate merge() API. This makes usages more compact.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109852
Files:
llvm/include/llvm/IR/Instruction.h
llvm/include/llvm/IR/Metadata.h
llvm/lib/Analysis/MemoryLocation.cpp
llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/lib/Transforms/Scalar/GVN.cpp
llvm/lib/Transforms/Scalar/JumpThreading.cpp
llvm/lib/Transforms/Scalar/LICM.cpp
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
polly/lib/Analysis/ScopDetection.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109852.372797.patch
Type: text/x-patch
Size: 29753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210915/1dbdacf0/attachment.bin>
More information about the llvm-commits
mailing list