This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] Implement getAsRelation for PWMAFunction
Needs ReviewPublic

Authored by iambrj on Aug 21 2023, 7:55 AM.

Details

Reviewers
Groverkss
arjunp
Summary

This patch implements getAsRelation for PWMAFunction

Diff Detail

Event Timeline

iambrj created this revision.Aug 21 2023, 7:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 7:55 AM
iambrj requested review of this revision.Aug 21 2023, 7:55 AM
iambrj updated this revision to Diff 552046.Aug 21 2023, 9:14 AM

Fix code style formatting

Groverkss added inline comments.Aug 23 2023, 10:29 PM
mlir/lib/Analysis/Presburger/PresburgerRelation.cpp
162

Could you send this bug fix as a separate patch?

mlir/unittests/Analysis/Presburger/Parser.h
50–64

in this implementation, I would just call parsePresburgerSet, and the call convertVarKind. (If PresburgerRelation does not have convertVarKind, this would be the ideal time to implement it :) )