Skip to content

Commit 7ce5da3

Browse files
ChuanqiXu9ronlieb
authored andcommitted
[NFC] [AST] Introduce Decl::isInAnotherModuleUnit and Decl::shouldEmitInExternalSource
Motivated by the review process in llvm#75912. This can also help to simplify the code slightly. Change-Id: Iffc556c1390a8365a8ffe598e94d3ad2ea83582c
1 parent f34d3e8 commit 7ce5da3

File tree

3 files changed

+19
-30
lines changed

3 files changed

+19
-30
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3969,7 +3969,6 @@ QualType ASTContext::getConstantArrayType(QualType EltTy,
39693969
llvm::APInt ArySize(ArySizeIn);
39703970
ArySize = ArySize.zextOrTrunc(Target->getMaxPointerWidth());
39713971

3972-
39733972
llvm::FoldingSetNodeID ID;
39743973
ConstantArrayType::Profile(ID, *this, EltTy, ArySize.getZExtValue(), SizeExpr,
39753974
ASM, IndexTypeQuals);

clang/lib/CodeGen/CGVTables.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,7 @@ void CodeGenVTables::addVTableComponent(ConstantArrayBuilder &builder,
803803
// For NVPTX devices in OpenMP emit special functon as null pointers,
804804
// otherwise linking ends up with unresolved references.
805805
if (CGM.getLangOpts().OpenMP && CGM.getLangOpts().OpenMPIsTargetDevice &&
806-
(CGM.getTriple().isNVPTX() ||
807-
(CGM.getTriple().isAMDGCN())))
806+
CGM.getTriple().isNVPTX())
808807
return llvm::ConstantPointerNull::get(CGM.GlobalsInt8PtrTy);
809808
llvm::FunctionType *fnTy =
810809
llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false);

revert_patches.txt

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ revert: breaks MIOpen composableKernel build
22
[clang][Sema] Add -Wswitch-default warning option (#73077)
33
https://ontrack-internal.amd.com/browse/SWDEV-436625
44

5-
Revert: breaks build of hipCUB
6-
commit 55783bd0 [HIP] fix host min/max in header (#82956)
7-
8-
Revert :breaks hip catch tests.
9-
1de7e6c8cba2 [clang] move -Wcast-function-type under -Wextra (#77178)
10-
999d4f840777 Split -Wcast-function-type into a separate group (#86131)
11-
125
---
136
Revert: 8009bbe
147
Commit title:
@@ -47,30 +40,10 @@ Revert: 41f9c78
4740
Contacts:
4841
Konstantin
4942
---
50-
51-
Revert "Recommit "[InstCombine] Expand `foldSelectICmpAndOr` -> `foldSelectICmpAndBinOp` to work for more binops" (3rd Try)"
52-
53-
Backup fix for SWDEV-454675
54-
55-
This reverts commit 54ec8bcaf85e3a3341c97640331d58e24ac0d2cd.
56-
57-
contact: Selehov
58-
59-
---
60-
Revert: breaks ipBlender*
61-
0e73bbd3450c [AMDGPU][PromoteAlloca] Don't stop when an alloca is too big to promote (#93466)
62-
63-
contact: Pierre
64-
65-
---
6643
Revert: temaplate breaks ComposableKernel build
6744
f46d1463b835 [clang] require template arg list after template kw (#80801)
6845
contact : RonL
6946
---
70-
Revert: Breaks check-clang test 'clang/test/Modules/pr60085.cppm'
71-
99873b35da7e [NFC] [AST] Introduce Decl::isInAnotherModuleUnit and Decl::shouldEmitInExternalSource
72-
contact : mhalk (Michael Halkenhaeuser)
73-
---
7447
Revert: breaks composableKernel
7548
53d2f4d96783 [CUDA][HIP] warn incompatible redeclare (#77359)
7649
contact : Ronl or Sam
@@ -95,6 +68,8 @@ Revert: more Sema:
9568
9e1f1cfa59c4 [Clang][Sema] Handle class member access expressions with valid nested-name-specifiers that become invalid after lookup (#98167)
9669
RonL
9770
---
71+
============== above are sema/mipopen/composable-kernel related
72+
---
9873
Revert: breaks devIO for openmp
9974
dfeb3991fb48 Remove the `x86_mmx` IR type. (#98505)
10075
b7e4fba6e5dc Cleanup x86_mmx after removing IR type (#100646) (Reason: dependent on dfeb3991fb48)
@@ -105,3 +80,19 @@ revert: 1ca9fe6db334 Reapply "[Attributor][AMDGPU] Enable AAIndirectCallInfo f
10580
revert : breaks build of amdgpu flat intrinsics
10681
ee08d9cba561 AMDGPU: Remove global/flat atomic fadd intrinics (#97051)
10782
---
83+
Revert: breaks build of hipCUB
84+
commit 55783bd0 [HIP] fix host min/max in header (#82956)
85+
---
86+
Revert :breaks hip catch tests.
87+
1de7e6c8cba2 [clang] move -Wcast-function-type under -Wextra (#77178)
88+
999d4f840777 Split -Wcast-function-type into a separate group (#86131)
89+
---
90+
Revert "Recommit "[InstCombine] Expand `foldSelectICmpAndOr` -> `foldSelectICmpAndBinOp` to work for more binops" (3rd Try)"
91+
Backup fix for SWDEV-454675
92+
This reverts commit 54ec8bcaf85e3a3341c97640331d58e24ac0d2cd.
93+
contact: Selehov
94+
---
95+
Revert: breaks hipBlender*
96+
0e73bbd3450c [AMDGPU][PromoteAlloca] Don't stop when an alloca is too big to promote (#93466)
97+
contact: Pierre
98+
---

0 commit comments

Comments
 (0)