Add -mcpu, -mattr, -mllvm, and -save-temps options for lto when necessary.
Details
Details
Diff Detail
Diff Detail
Event Timeline
clang/lib/Driver/ToolChains/HIP.cpp | ||
---|---|---|
76 | I think StringRef will result in comparison by value. If we happen to have duplicate features, we may end up skipping a comma. |
clang/lib/Driver/ToolChains/HIP.cpp | ||
---|---|---|
76 | Fixed by using unifyTargetFeatures. This makes sure the features are unique. |
I think StringRef will result in comparison by value. If we happen to have duplicate features, we may end up skipping a comma.
You need to either iterate ofer the pointers to elements of the Features, or use a different method of figuring out if a comma is necessary.
E.g. us a bool set at the end of the body.