[PATCH] D71888: [mlir] Added llvm.resume and personality functions in LLVM IR Dialect
Uday Bondhugula via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 17 07:03:10 PST 2020
bondhugula added inline comments.
================
Comment at: mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:637
+ for (Value v : values) {
+ assert(valueMapping.find(v) != valueMapping.end() &&
+ "referencing undefined value");
----------------
shraiysh wrote:
> rriddle wrote:
> > nit: llvm::is_contained
> I think `llvm::is_contained` is a wrapper for `std::find`. I am not sure if there is a neat way of looking for keys in a map using `std::find` (and hence `llvm::is_contained`). Please let me know if there is.
It might be a wrapper around it, but it's more readable to me with llvm::is_contained.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71888/new/
https://reviews.llvm.org/D71888
More information about the llvm-commits
mailing list