The only RTLs that get added to the UsedRTLs list have already been
checked is they were valid binaries. We shouldn't need to do this again
when we unregister all the used binaries as they wouldn't have been used
if they were invalid anyway. Let me know if I'm incorrect in this
assumption.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
openmp/libomptarget/src/rtl.cpp | ||
---|---|---|
513 | Is it necessary to still keep it? |
openmp/libomptarget/src/rtl.cpp | ||
---|---|---|
513 | It's only used for a debug print message at the end of the loop to say "No RTL's found for Image". We can get rid of that if necessary. |
Comment Actions
Actually, the RTL may contain more images than the ones we added. So we probably should just have a separate list of images used inside of the RTL type and just exit if it's not in that set.
Comment Actions
Adding a set to contain the images used by the RTL instead. Should still save us time going into the plugin to check if the image is valid, espeically when we need to check runtime values like the target architecture.
Documentation plz.