Skip to content

Conversation

@z1-cciauto
Copy link
Collaborator

No description provided.

kazutakahirata and others added 8 commits November 8, 2025 10:16
…7151)

All others seem to use std::move in StringSwitch.
Identified with modernize-use-starts-ends-with.
initializeNVPTXCtorDtorLoweringLegacyPass is declared twice in
NVPTX.h.

initializeGenericToNVVMLegacyPassPass is declared in NVPTX.h.

Identified with readability-redundant-declaration.
We can drop .str().c_str() here because all of the following are of
type StringRef:

- E.Name
- the second parameter of llvm::yaml::IO::enumCase
- the second parameter of llvm::yaml::IO::bitSetCase

Identified with readability-redundant-string-cstr.
…67155)

This patch does two things for readability:

- Use structured bindings.
- Remove extraneous .c_str().

Note that YamlIO.mapRequired takes StringRef as the key type.  As
such, we can implicitly construct StringRef from std::string.
Note that addMultilibFlag takes StringRef for its second parameter.

Identified with readability-redundant-string-cstr.
This ensures that run-buildbot can find the appropriate build tools
without having to go through a bunch of hoops inside run-buildbot
itself. When we eventually run the bootstrapping build on macOS, it also
allows the bootstrapped Clang to find the SDK headers it requires.

This also allows simplifying run-buildbot a bunch since we should be
able to find build tools in the current $PATH.
@z1-cciauto z1-cciauto requested a review from a team November 8, 2025 20:12
@z1-cciauto
Copy link
Collaborator Author

@ronlieb ronlieb merged commit 176dd5b into amd-staging Nov 8, 2025
13 checks passed
@ronlieb ronlieb deleted the upstream_merge_202511081512 branch November 8, 2025 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants