[PATCH] D93400: [IRBuilder] Generalize debug loc handling for arbitrary metadata.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 17 02:24:15 PST 2020


fhahn updated this revision to Diff 312416.
fhahn added a comment.
Herald added a reviewer: deadalnix.

Update CollectMetadataToCopy to drop metadata kinds that are in MetadataToCopy but not on the source instruction. Also replace LLVMSetInstDebugLocation with LLVMAddInstMetadata.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93400/new/

https://reviews.llvm.org/D93400

Files:
  llvm/include/llvm-c/Core.h
  llvm/include/llvm/IR/IRBuilder.h
  llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
  llvm/lib/IR/Core.cpp
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/tools/llvm-c-test/echo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93400.312416.patch
Type: text/x-patch
Size: 6353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201217/5fa22180/attachment.bin>


More information about the llvm-commits mailing list