This is an archive of the discontinued LLVM Phabricator instance.

Make arith converter configurable by user
AbandonedPublic

Authored by yzhang93 on May 31 2023, 11:57 AM.

Details

Summary

Depends on D151826

Diff Detail

Event Timeline

yzhang93 created this revision.May 31 2023, 11:57 AM
Herald added a project: Restricted Project. · View Herald Transcript
yzhang93 requested review of this revision.May 31 2023, 11:57 AM
yzhang93 abandoned this revision.May 31 2023, 1:06 PM
kuhar added inline comments.May 31 2023, 1:06 PM
mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowInt.cpp
89–94

if you expect the converted type to be something specific, pass it to the convert functions: getTypeConverter()->convertType<MemRefType>();. This way the code won't explode if the type converter returns something undesirable.

mlir/test/lib/Dialect/MemRef/TestEmulateNarrowInt.cpp
107

Is this 4 in the flag name intentional?