This is an archive of the discontinued LLVM Phabricator instance.

[MustExec][NFC] Expose a common LoopSafetyInfo interface
Needs ReviewPublic

Authored by jdoerfert on Jul 19 2019, 12:15 AM.

Details

Summary

This patch creates an abstract base class to allow new LoopSafetyInfo
implementations that are not based on the curent LoopSafetyInfo block
coloring. In the process, we added two more specialized methods

`insertInstructionBefore/After`

which provide more information than the current

`insertInstructionTo`

method.

Event Timeline

jdoerfert created this revision.Jul 19 2019, 12:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2019, 12:15 AM
lebedev.ri added inline comments.Jul 19 2019, 9:40 AM
llvm/include/llvm/Analysis/MustExecute.h
73

const Instruction *PosI) {}

jdoerfert marked an inline comment as done.Jul 21 2019, 10:27 AM

Any objections to this?

llvm/include/llvm/Analysis/MustExecute.h
73

I'll clang-format, I though I did already.

jdoerfert marked an inline comment as done.Jul 21 2019, 10:29 AM
jdoerfert added inline comments.
llvm/include/llvm/Analysis/MustExecute.h
73

I could probably make them pure as well.

lebedev.ri added inline comments.Jul 21 2019, 1:47 PM
llvm/include/llvm/Analysis/MustExecute.h
73

I'm mainly commenting on that extra ;

lebedev.ri resigned from this revision.Jul 21 2019, 1:53 PM

I'm sorry, i have never ever touched this area of codebase, i don't believe i can be of any help with this patch set. :(

jdoerfert updated this revision to Diff 211178.Jul 22 2019, 1:34 PM

Make methods pure, clang-format

arsenm resigned from this revision.Apr 7 2020, 11:45 AM
asbirlea removed a subscriber: asbirlea.Apr 7 2020, 12:37 PM