Skip to content

Commit 9344014

Browse files
authored
Merge branch 'main' into hlsl_asint16_intrinsic
2 parents 9aefe01 + acdb0c1 commit 9344014

File tree

39 files changed

+447
-114
lines changed

39 files changed

+447
-114
lines changed

.ci/monolithic-linux.sh

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,6 @@ if [[ "${runtimes}" != "" ]]; then
9090
INSTALL_DIR="${BUILD_DIR}/install"
9191
mkdir -p ${RUNTIMES_BUILD_DIR}
9292

93-
echo "--- cmake runtimes C++03"
94-
95-
cmake -S "${MONOREPO_ROOT}/runtimes" -B "${RUNTIMES_BUILD_DIR}" -GNinja \
96-
-D CMAKE_C_COMPILER="${INSTALL_DIR}/bin/clang" \
97-
-D CMAKE_CXX_COMPILER="${INSTALL_DIR}/bin/clang++" \
98-
-D LLVM_ENABLE_RUNTIMES="${runtimes}" \
99-
-D LIBCXX_CXX_ABI=libcxxabi \
100-
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
101-
-D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
102-
-D LIBCXX_TEST_PARAMS="std=c++03" \
103-
-D LIBCXXABI_TEST_PARAMS="std=c++03" \
104-
-D LLVM_LIT_ARGS="${lit_args}"
105-
106-
echo "--- ninja runtimes C++03"
107-
108-
ninja -vC "${RUNTIMES_BUILD_DIR}" ${runtime_targets}
109-
11093
echo "--- cmake runtimes C++26"
11194

11295
rm -rf "${RUNTIMES_BUILD_DIR}"
@@ -140,6 +123,6 @@ if [[ "${runtimes}" != "" ]]; then
140123
-D LLVM_LIT_ARGS="${lit_args}"
141124

142125
echo "--- ninja runtimes clang modules"
143-
126+
144127
ninja -vC "${RUNTIMES_BUILD_DIR}" ${runtime_targets}
145128
fi

.github/workflows/issue-write.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: 'Comment on PR'
4141
if: steps.download-artifact.outputs.artifact-id != ''
42-
uses: actions/github-script@ffc2c79a5b2490bd33e0a41c1de74b877714d736 # v3.2.0
42+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
4343
with:
4444
github-token: ${{ secrets.GITHUB_TOKEN }}
4545
script: |
@@ -49,7 +49,7 @@ jobs:
4949
return;
5050
}
5151
52-
let runInfo = await github.actions.getWorkflowRun({
52+
let runInfo = await github.rest.actions.getWorkflowRun({
5353
owner: context.repo.owner,
5454
repo: context.repo.repo,
5555
run_id: context.payload.workflow_run.id
@@ -122,7 +122,7 @@ jobs:
122122
// Security check: Ensure that this comment was created by
123123
// the github-actions bot, so a malicious input won't overwrite
124124
// a user's comment.
125-
github.issues.getComment({
125+
github.rest.issues.getComment({
126126
owner: context.repo.owner,
127127
repo: context.repo.repo,
128128
comment_id: comment.id
@@ -132,7 +132,7 @@ jobs:
132132
console.log("Invalid comment id: " + comment.id);
133133
return;
134134
}
135-
github.issues.updateComment({
135+
github.rest.issues.updateComment({
136136
owner: context.repo.owner,
137137
repo: context.repo.repo,
138138
issue_number: pr_number,
@@ -141,7 +141,7 @@ jobs:
141141
});
142142
});
143143
} else {
144-
github.issues.createComment({
144+
github.rest.issues.createComment({
145145
owner: context.repo.owner,
146146
repo: context.repo.repo,
147147
issue_number: pr_number,

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ Target Specific Changes
382382
AMDGPU Support
383383
^^^^^^^^^^^^^^
384384

385+
- Bump the default code object version to 6. ROCm 6.3 is required to run any program compiled with COV6.
386+
385387
NVPTX Support
386388
^^^^^^^^^^^^^^
387389

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5161,12 +5161,12 @@ defm amdgpu_ieee : BoolMOption<"amdgpu-ieee",
51615161
NegFlag<SetFalse, [], [ClangOption, CC1Option]>>;
51625162

51635163
def mcode_object_version_EQ : Joined<["-"], "mcode-object-version=">, Group<m_Group>,
5164-
HelpText<"Specify code object ABI version. Defaults to 5. (AMDGPU only)">,
5164+
HelpText<"Specify code object ABI version. Defaults to 6. (AMDGPU only)">,
51655165
Visibility<[ClangOption, FlangOption, CC1Option, FC1Option]>,
51665166
Values<"none,4,5,6">,
51675167
NormalizedValuesScope<"llvm::CodeObjectVersionKind">,
51685168
NormalizedValues<["COV_None", "COV_4", "COV_5", "COV_6"]>,
5169-
MarshallingInfoEnum<TargetOpts<"CodeObjectVersion">, "COV_5">;
5169+
MarshallingInfoEnum<TargetOpts<"CodeObjectVersion">, "COV_6">;
51705170

51715171
defm cumode : SimpleMFlag<"cumode",
51725172
"Specify CU wavefront", "Specify WGP wavefront",

clang/include/clang/Lex/HeaderSearch.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class HeaderSearch {
241241
friend SearchDirIterator;
242242

243243
/// Header-search options used to initialize this header search.
244-
std::shared_ptr<HeaderSearchOptions> HSOpts;
244+
std::shared_ptr<const HeaderSearchOptions> HSOpts;
245245

246246
/// Mapping from SearchDir to HeaderSearchOptions::UserEntries indices.
247247
llvm::DenseMap<unsigned, unsigned> SearchDirToHSEntry;
@@ -359,15 +359,15 @@ class HeaderSearch {
359359
void indexInitialHeaderMaps();
360360

361361
public:
362-
HeaderSearch(std::shared_ptr<HeaderSearchOptions> HSOpts,
362+
HeaderSearch(std::shared_ptr<const HeaderSearchOptions> HSOpts,
363363
SourceManager &SourceMgr, DiagnosticsEngine &Diags,
364364
const LangOptions &LangOpts, const TargetInfo *Target);
365365
HeaderSearch(const HeaderSearch &) = delete;
366366
HeaderSearch &operator=(const HeaderSearch &) = delete;
367367

368368
/// Retrieve the header-search options with which this header search
369369
/// was initialized.
370-
HeaderSearchOptions &getHeaderSearchOpts() const { return *HSOpts; }
370+
const HeaderSearchOptions &getHeaderSearchOpts() const { return *HSOpts; }
371371

372372
FileManager &getFileMgr() const { return FileMgr; }
373373

clang/include/clang/Lex/HeaderSearchOptions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ class HeaderSearchOptions {
235235

236236
/// Whether to entirely skip writing diagnostic options.
237237
/// Primarily used to speed up deserialization during dependency scanning.
238+
/// FIXME: Consider moving these into separate `SerializationOptions` class.
238239
LLVM_PREFERRED_TYPE(bool)
239240
unsigned ModulesSkipDiagnosticOptions : 1;
240241

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2760,7 +2760,7 @@ void tools::checkAMDGPUCodeObjectVersion(const Driver &D,
27602760

27612761
unsigned tools::getAMDGPUCodeObjectVersion(const Driver &D,
27622762
const llvm::opt::ArgList &Args) {
2763-
unsigned CodeObjVer = 5; // default
2763+
unsigned CodeObjVer = 6; // default
27642764
if (auto *CodeObjArg = getAMDGPUCodeObjectArgument(D, Args))
27652765
StringRef(CodeObjArg->getValue()).getAsInteger(0, CodeObjVer);
27662766
return CodeObjVer;

clang/lib/Frontend/CompilerInstance.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,8 @@ IntrusiveRefCntPtr<ASTReader> CompilerInstance::createPCHExternalASTSource(
631631
ArrayRef<std::shared_ptr<DependencyCollector>> DependencyCollectors,
632632
void *DeserializationListener, bool OwnDeserializationListener,
633633
bool Preamble, bool UseGlobalModuleIndex) {
634-
HeaderSearchOptions &HSOpts = PP.getHeaderSearchInfo().getHeaderSearchOpts();
634+
const HeaderSearchOptions &HSOpts =
635+
PP.getHeaderSearchInfo().getHeaderSearchOpts();
635636

636637
IntrusiveRefCntPtr<ASTReader> Reader(new ASTReader(
637638
PP, ModCache, &Context, PCHContainerRdr, Extensions,

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4971,6 +4971,14 @@ bool CompilerInvocation::CreateFromArgsImpl(
49714971
llvm::Triple T(Res.getTargetOpts().Triple);
49724972
ParseHeaderSearchArgs(Res.getHeaderSearchOpts(), Args, Diags,
49734973
Res.getFileSystemOpts().WorkingDir);
4974+
if (Res.getFrontendOpts().GenReducedBMI ||
4975+
Res.getFrontendOpts().ProgramAction ==
4976+
frontend::GenerateReducedModuleInterface ||
4977+
Res.getFrontendOpts().ProgramAction ==
4978+
frontend::GenerateModuleInterface) {
4979+
Res.getHeaderSearchOpts().ModulesSkipDiagnosticOptions = true;
4980+
Res.getHeaderSearchOpts().ModulesSkipHeaderSearchPaths = true;
4981+
}
49744982
ParseAPINotesArgs(Res.getAPINotesOpts(), Args, Diags);
49754983

49764984
ParsePointerAuthArgs(LangOpts, Args, Diags);

clang/lib/Frontend/FrontendActions.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,8 @@ void DumpModuleInfoAction::ExecuteAction() {
878878

879879
Preprocessor &PP = CI.getPreprocessor();
880880
DumpModuleInfoListener Listener(Out);
881-
HeaderSearchOptions &HSOpts = PP.getHeaderSearchInfo().getHeaderSearchOpts();
881+
const HeaderSearchOptions &HSOpts =
882+
PP.getHeaderSearchInfo().getHeaderSearchOpts();
882883

883884
// The FrontendAction::BeginSourceFile () method loads the AST so that much
884885
// of the information is already available and modules should have been

0 commit comments

Comments
 (0)