[PATCH] D60814: [PassBuilder] promote pass-pipeline parsing API to public

Fedor Sergeev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 17 08:06:02 PDT 2019


fedor.sergeev added a comment.

In D60814#1470299 <https://reviews.llvm.org/D60814#1470299>, @chandlerc wrote:

> Yeah, the array-ref API here is already pretty leaky. It'd be really nice if we could only give the callbacks the necessary APIs here, but not sure its worth building that abstraction. I think the way I'd do it is create a parser type that is only built by the `PassBuilder` and is passed into the callbacks. It would then have these APIs, etc. It'd also be used internally to implement the main parsing API. Thoughts?


It might be a bit conceptually cleaner, but other than renaming the object from PassBuilder to PassPipelineParser (and internally talking to PassBuilder), what would be the API difference
compared to what is being suggested here?
I see a bunch of questions, e.g. - should we keep the callbacks in the parser object? etc
And I dont really see what practical benefits would we get from separating the parsing API out...

Said that, I'm fine with going this direction if it appears to be useful.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D60814





More information about the llvm-commits mailing list