This patch moves the outlined function registration, function attribute
configuration and function ID creation to the OpenMPIRBuilder. This will later
be used by flag as well.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
1467 | Outlined function is too generic for the function name here and elsewhere. It's an outlined target region, or similar. We outline a lot of functions but this is specific to target regions, correct? | |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
3960 | This is not DSO local? Maybe add a TODO to check this in the future. | |
3979–3984 | no else after return |
Changed setOutlinedFunctionAttributes to setOutlinedTargetRegionFunctionAttributes. Fixed else after return. Added TODO. Removed comment.
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
1467 |
Yes, I am replacing it with setOutlinedTargetRegionFunctionAttributes. |
No need to pass in IsEmbedded, it is in the config now. Perhaps the manager should also have the config available.
Outlined function is too generic for the function name here and elsewhere. It's an outlined target region, or similar. We outline a lot of functions but this is specific to target regions, correct?