Skip to content

Commit 7851a6d

Browse files
committed
merge main into amd-staging
Change-Id: Ifc793522458e95d97d280481caa095cd949e8c3a
2 parents 6b48a5a + e0a02fd commit 7851a6d

File tree

282 files changed

+82990
-9553
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+82990
-9553
lines changed

bolt/test/X86/pre-aggregated-perf.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ REQUIRES: system-linux
1111

1212
RUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe
1313
RUN: perf2bolt %t.exe -o %t --pa -p %p/Inputs/pre-aggregated.txt -w %t.new \
14+
RUN: --show-density \
1415
RUN: --profile-density-threshold=9 --profile-density-cutoff-hot=970000 \
1516
RUN: --profile-use-dfs | FileCheck %s --check-prefix=CHECK-P2B
1617

1718
CHECK-P2B: BOLT-INFO: 4 out of 7 functions in the binary (57.1%) have non-empty execution profile
1819
CHECK-P2B: BOLT-INFO: Functions with density >= 21.7 account for 97.00% total sample counts.
1920

2021
RUN: perf2bolt %t.exe -o %t --pa -p %p/Inputs/pre-aggregated.txt -w %t.new \
22+
RUN: --show-density \
2123
RUN: --profile-density-cutoff-hot=970000 \
2224
RUN: --profile-use-dfs 2>&1 | FileCheck %s --check-prefix=CHECK-WARNING
2325

clang-tools-extra/clang-tidy/readability/EnumInitialValueCheck.cpp

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ AST_MATCHER(EnumDecl, hasSequentialInitialValues) {
123123
return !AllEnumeratorsArePowersOfTwo;
124124
}
125125

126+
std::string getName(const EnumDecl *Decl) {
127+
if (!Decl->getDeclName())
128+
return "<unnamed>";
129+
130+
return Decl->getQualifiedNameAsString();
131+
}
132+
126133
} // namespace
127134

128135
EnumInitialValueCheck::EnumInitialValueCheck(StringRef Name,
@@ -160,10 +167,11 @@ void EnumInitialValueCheck::registerMatchers(MatchFinder *Finder) {
160167
void EnumInitialValueCheck::check(const MatchFinder::MatchResult &Result) {
161168
if (const auto *Enum = Result.Nodes.getNodeAs<EnumDecl>("inconsistent")) {
162169
DiagnosticBuilder Diag =
163-
diag(Enum->getBeginLoc(),
164-
"initial values in enum %0 are not consistent, consider explicit "
165-
"initialization of all, none or only the first enumerator")
166-
<< Enum;
170+
diag(
171+
Enum->getBeginLoc(),
172+
"initial values in enum '%0' are not consistent, consider explicit "
173+
"initialization of all, none or only the first enumerator")
174+
<< getName(Enum);
167175
for (const EnumConstantDecl *ECD : Enum->enumerators())
168176
if (ECD->getInitExpr() == nullptr) {
169177
const SourceLocation EndLoc = Lexer::getLocForEndOfToken(
@@ -183,16 +191,16 @@ void EnumInitialValueCheck::check(const MatchFinder::MatchResult &Result) {
183191
if (Loc.isInvalid() || Loc.isMacroID())
184192
return;
185193
DiagnosticBuilder Diag = diag(Loc, "zero initial value for the first "
186-
"enumerator in %0 can be disregarded")
187-
<< Enum;
194+
"enumerator in '%0' can be disregarded")
195+
<< getName(Enum);
188196
cleanInitialValue(Diag, ECD, *Result.SourceManager, getLangOpts());
189197
return;
190198
}
191199
if (const auto *Enum = Result.Nodes.getNodeAs<EnumDecl>("sequential")) {
192200
DiagnosticBuilder Diag =
193201
diag(Enum->getBeginLoc(),
194-
"sequential initial value in %0 can be ignored")
195-
<< Enum;
202+
"sequential initial value in '%0' can be ignored")
203+
<< getName(Enum);
196204
for (const EnumConstantDecl *ECD : llvm::drop_begin(Enum->enumerators()))
197205
cleanInitialValue(Diag, ECD, *Result.SourceManager, getLangOpts());
198206
return;

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ Changes in existing checks
249249

250250
- Improved :doc:`readability-enum-initial-value
251251
<clang-tidy/checks/readability/enum-initial-value>` check by only issuing
252-
diagnostics for the definition of an ``enum``, and by fixing a typo in the
252+
diagnostics for the definition of an ``enum``, by not emitting a redundant
253+
file path for anonymous enums in the diagnostic, and by fixing a typo in the
253254
diagnostic.
254255

255256
- Improved :doc:`readability-implicit-bool-conversion

clang-tools-extra/test/clang-tidy/checkers/readability/enum-initial-value.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ enum EMacro2 {
5353
// CHECK-FIXES: EMacro2_c = 3,
5454
};
5555

56+
57+
enum {
58+
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: initial values in enum '<unnamed>' are not consistent
59+
// CHECK-MESSAGES-ENABLE: :[[@LINE-2]]:1: warning: initial values in enum '<unnamed>' are not consistent
60+
EAnonymous_a = 1,
61+
EAnonymous_b,
62+
// CHECK-FIXES: EAnonymous_b = 2,
63+
EAnonymous_c = 3,
64+
};
65+
66+
5667
enum EnumZeroFirstInitialValue {
5768
EnumZeroFirstInitialValue_0 = 0,
5869
// CHECK-MESSAGES-ENABLE: :[[@LINE-1]]:3: warning: zero initial value for the first enumerator in 'EnumZeroFirstInitialValue' can be disregarded
@@ -114,4 +125,3 @@ enum WithFwdDeclSequential : int {
114125
EFS2 = 4,
115126
// CHECK-FIXES-ENABLE: EFS2 ,
116127
};
117-

clang/docs/ReleaseNotes.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ code bases.
4646

4747
- The ``clang-rename`` tool has been removed.
4848

49+
- Removed support for RenderScript targets. This technology is
50+
`officially deprecated <https://developer.android.com/guide/topics/renderscript/compute>`_
51+
and users are encouraged to
52+
`migrate to Vulkan <https://developer.android.com/guide/topics/renderscript/migrate>`_
53+
or other options.
54+
4955
C/C++ Language Potentially Breaking Changes
5056
-------------------------------------------
5157

clang/include/clang/Basic/Attr.td

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ def SYCL : LangOpt<"SYCLIsDevice">;
411411
def COnly : LangOpt<"", "!LangOpts.CPlusPlus">;
412412
def CPlusPlus : LangOpt<"CPlusPlus">;
413413
def OpenCL : LangOpt<"OpenCL">;
414-
def RenderScript : LangOpt<"RenderScript">;
415414
def ObjC : LangOpt<"ObjC">;
416415
def BlocksSupported : LangOpt<"Blocks">;
417416
def ObjCAutoRefCount : LangOpt<"ObjCAutoRefCount">;
@@ -1629,14 +1628,6 @@ def OpenCLNoSVM : Attr {
16291628
let ASTNode = 0;
16301629
}
16311630

1632-
def RenderScriptKernel : Attr {
1633-
let Spellings = [GNU<"kernel">];
1634-
let Subjects = SubjectList<[Function]>;
1635-
let Documentation = [RenderScriptKernelAttributeDocs];
1636-
let LangOpts = [RenderScript];
1637-
let SimpleHandler = 1;
1638-
}
1639-
16401631
def Deprecated : InheritableAttr {
16411632
let Spellings = [GCC<"deprecated">, Declspec<"deprecated">,
16421633
CXX11<"","deprecated", 201309>,

clang/include/clang/Basic/AttrDocs.td

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5831,21 +5831,6 @@ provided with the regular ``visibility`` attribute.
58315831
}];
58325832
}
58335833

5834-
def RenderScriptKernelAttributeDocs : Documentation {
5835-
let Category = DocCatFunction;
5836-
let Content = [{
5837-
``__attribute__((kernel))`` is used to mark a ``kernel`` function in
5838-
RenderScript.
5839-
5840-
In RenderScript, ``kernel`` functions are used to express data-parallel
5841-
computations. The RenderScript runtime efficiently parallelizes ``kernel``
5842-
functions to run on computational resources such as multi-core CPUs and GPUs.
5843-
See the RenderScript_ documentation for more information.
5844-
5845-
.. _RenderScript: https://developer.android.com/guide/topics/renderscript/compute.html
5846-
}];
5847-
}
5848-
58495834
def XRayDocs : Documentation {
58505835
let Category = DocCatFunction;
58515836
let Heading = "xray_always_instrument, xray_never_instrument, xray_log_args";

clang/include/clang/Basic/LangOptions.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ LANGOPT(OpenMPForceUSM , 1, 0, "Enable OpenMP unified shared memory mode via
291291
LANGOPT(OpenMPKernelIO , 1, 1, "Enable OpenMP host-exec Device IO.")
292292

293293
LANGOPT(NoGPULib , 1, 0, "Indicate a build without the standard GPU libraries.")
294-
LANGOPT(RenderScript , 1, 0, "RenderScript")
295294

296295
LANGOPT(HLSL, 1, 0, "HLSL")
297296
ENUM_LANGOPT(HLSLVersion, HLSLLangStd, 16, HLSL_Unset, "HLSL Version")

clang/include/clang/Basic/LangStandard.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ enum class Language : uint8_t {
3939
OpenCL,
4040
OpenCLCXX,
4141
CUDA,
42-
RenderScript,
4342
HIP,
4443
HLSL,
4544
///@}

clang/include/clang/Basic/TargetInfo.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,6 @@ class TargetInfo : public TransferrableTargetInfo,
262262
LLVM_PREFERRED_TYPE(bool)
263263
unsigned HasBuiltinMSVaList : 1;
264264

265-
LLVM_PREFERRED_TYPE(bool)
266-
unsigned IsRenderScriptTarget : 1;
267-
268265
LLVM_PREFERRED_TYPE(bool)
269266
unsigned HasAArch64SVETypes : 1;
270267

@@ -1031,9 +1028,6 @@ class TargetInfo : public TransferrableTargetInfo,
10311028
/// available on this target.
10321029
bool hasBuiltinMSVaList() const { return HasBuiltinMSVaList; }
10331030

1034-
/// Returns true for RenderScript.
1035-
bool isRenderScriptTarget() const { return IsRenderScriptTarget; }
1036-
10371031
/// Returns whether or not the AArch64 SVE built-in types are
10381032
/// available on this target.
10391033
bool hasAArch64SVETypes() const { return HasAArch64SVETypes; }

clang/include/clang/CodeGen/CGFunctionInfo.h

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,8 @@ class ABIArgInfo {
271271
// in the unpadded type.
272272
unsigned unpaddedIndex = 0;
273273
for (auto eltType : coerceToType->elements()) {
274-
if (isPaddingForCoerceAndExpand(eltType)) continue;
275-
if (unpaddedStruct) {
276-
assert(unpaddedStruct->getElementType(unpaddedIndex) == eltType);
277-
} else {
278-
assert(unpaddedIndex == 0 && unpaddedCoerceToType == eltType);
279-
}
274+
if (isPaddingForCoerceAndExpand(eltType))
275+
continue;
280276
unpaddedIndex++;
281277
}
282278

@@ -295,12 +291,8 @@ class ABIArgInfo {
295291
}
296292

297293
static bool isPaddingForCoerceAndExpand(llvm::Type *eltType) {
298-
if (eltType->isArrayTy()) {
299-
assert(eltType->getArrayElementType()->isIntegerTy(8));
300-
return true;
301-
} else {
302-
return false;
303-
}
294+
return eltType->isArrayTy() &&
295+
eltType->getArrayElementType()->isIntegerTy(8);
304296
}
305297

306298
Kind getKind() const { return TheKind; }

clang/include/clang/Driver/Options.td

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@ defvar c23 = LangOpts<"C23">;
627627
defvar lang_std = LangOpts<"LangStd">;
628628
defvar open_cl = LangOpts<"OpenCL">;
629629
defvar cuda = LangOpts<"CUDA">;
630-
defvar render_script = LangOpts<"RenderScript">;
631630
defvar hip = LangOpts<"HIP">;
632631
defvar gnu_mode = LangOpts<"GNUMode">;
633632
defvar asm_preprocessor = LangOpts<"AsmPreprocessor">;
@@ -1792,6 +1791,12 @@ defm debug_info_for_profiling : BoolFOption<"debug-info-for-profiling",
17921791
PosFlag<SetTrue, [], [ClangOption, CC1Option],
17931792
"Emit extra debug info to make sample profile more accurate">,
17941793
NegFlag<SetFalse>>;
1794+
def fprofile_generate_cold_function_coverage : Flag<["-"], "fprofile-generate-cold-function-coverage">,
1795+
Group<f_Group>, Visibility<[ClangOption, CLOption]>,
1796+
HelpText<"Generate instrumented code to collect coverage info for cold functions into default.profraw file (overridden by '=' form of option or LLVM_PROFILE_FILE env var)">;
1797+
def fprofile_generate_cold_function_coverage_EQ : Joined<["-"], "fprofile-generate-cold-function-coverage=">,
1798+
Group<f_Group>, Visibility<[ClangOption, CLOption]>, MetaVarName<"<directory>">,
1799+
HelpText<"Generate instrumented code to collect coverage info for cold functions into <directory>/default.profraw (overridden by LLVM_PROFILE_FILE env var)">;
17951800
def fprofile_instr_generate : Flag<["-"], "fprofile-instr-generate">,
17961801
Group<f_Group>, Visibility<[ClangOption, CLOption]>,
17971802
HelpText<"Generate instrumented code to collect execution counts into default.profraw file (overridden by '=' form of option or LLVM_PROFILE_FILE env var)">;
@@ -5745,6 +5750,7 @@ def noprebind : Flag<["-"], "noprebind">;
57455750
def noprofilelib : Flag<["-"], "noprofilelib">;
57465751
def noseglinkedit : Flag<["-"], "noseglinkedit">;
57475752
def nostartfiles : Flag<["-"], "nostartfiles">, Group<Link_Group>;
5753+
def startfiles : Flag<["-"], "startfiles">, Group<Link_Group>;
57485754
def nostdinc : Flag<["-"], "nostdinc">,
57495755
Visibility<[ClangOption, CLOption, DXCOption]>, Group<IncludePath_Group>,
57505756
HelpText<"Disable both standard system #include directories and builtin #include directories">;
@@ -5757,6 +5763,9 @@ def nostdincxx : Flag<["-"], "nostdinc++">, Visibility<[ClangOption, CC1Option]>
57575763
def nostdlib : Flag<["-"], "nostdlib">,
57585764
Visibility<[ClangOption, CLOption, FlangOption, DXCOption]>,
57595765
Group<Link_Group>;
5766+
def stdlib : Flag<["-"], "stdlib">,
5767+
Visibility<[ClangOption, CLOption, FlangOption, DXCOption]>,
5768+
Group<Link_Group>;
57605769
def nostdlibxx : Flag<["-"], "nostdlib++">;
57615770
def object : Flag<["-"], "object">;
57625771
def o : JoinedOrSeparate<["-"], "o">,
@@ -6922,6 +6931,10 @@ def flang_deprecated_no_hlfir : Flag<["-"], "flang-deprecated-no-hlfir">,
69226931
Flags<[HelpHidden]>, Visibility<[FlangOption, FC1Option]>,
69236932
HelpText<"Do not use HLFIR lowering (deprecated)">;
69246933

6934+
def flang_experimental_integer_overflow : Flag<["-"], "flang-experimental-integer-overflow">,
6935+
Flags<[HelpHidden]>, Visibility<[FlangOption, FC1Option]>,
6936+
HelpText<"Add nsw flag to internal operations such as do-variable increment (experimental)">;
6937+
69256938
//===----------------------------------------------------------------------===//
69266939
// FLangOption + CoreOption + NoXarchOption
69276940
//===----------------------------------------------------------------------===//
@@ -8245,15 +8258,15 @@ def vtordisp_mode_EQ : Joined<["-"], "vtordisp-mode=">,
82458258
def fnative_half_type: Flag<["-"], "fnative-half-type">,
82468259
HelpText<"Use the native half type for __fp16 instead of promoting to float">,
82478260
MarshallingInfoFlag<LangOpts<"NativeHalfType">>,
8248-
ImpliedByAnyOf<[open_cl.KeyPath, render_script.KeyPath]>;
8261+
ImpliedByAnyOf<[open_cl.KeyPath]>;
82498262
def fnative_half_arguments_and_returns : Flag<["-"], "fnative-half-arguments-and-returns">,
82508263
HelpText<"Use the native __fp16 type for arguments and returns (and skip ABI-specific lowering)">,
82518264
MarshallingInfoFlag<LangOpts<"NativeHalfArgsAndReturns">>,
8252-
ImpliedByAnyOf<[open_cl.KeyPath, render_script.KeyPath, hlsl.KeyPath]>;
8265+
ImpliedByAnyOf<[open_cl.KeyPath, hlsl.KeyPath, hip.KeyPath]>;
82538266
def fallow_half_arguments_and_returns : Flag<["-"], "fallow-half-arguments-and-returns">,
82548267
HelpText<"Allow function arguments and returns of type half">,
82558268
MarshallingInfoFlag<LangOpts<"HalfArgsAndReturns">>,
8256-
ImpliedByAnyOf<[open_cl.KeyPath, render_script.KeyPath, hlsl.KeyPath, hip.KeyPath]>;
8269+
ImpliedByAnyOf<[open_cl.KeyPath, hlsl.KeyPath, hip.KeyPath]>;
82578270
def fdefault_calling_conv_EQ : Joined<["-"], "fdefault-calling-conv=">,
82588271
HelpText<"Set default calling convention">,
82598272
Values<"cdecl,fastcall,stdcall,vectorcall,regcall,rtdcall">,

clang/include/clang/Driver/Types.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ TYPE("c++", CXX, PP_CXX, "cpp", phases
5555
TYPE("objective-c++-cpp-output", PP_ObjCXX, INVALID, "mii", phases::Compile, phases::Backend, phases::Assemble, phases::Link)
5656
TYPE("objc++-cpp-output", PP_ObjCXX_Alias, INVALID, "mii", phases::Compile, phases::Backend, phases::Assemble, phases::Link)
5757
TYPE("objective-c++", ObjCXX, PP_ObjCXX, "mm", phases::Preprocess, phases::Compile, phases::Backend, phases::Assemble, phases::Link)
58-
TYPE("renderscript", RenderScript, PP_C, "rs", phases::Preprocess, phases::Compile, phases::Backend, phases::Assemble, phases::Link)
5958
TYPE("hlsl", HLSL, PP_CXX, "hlsl", phases::Preprocess, phases::Compile, phases::Backend, phases::Assemble)
6059

6160
// C family input files to precompile.

clang/include/clang/Serialization/ASTBitCodes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace serialization {
4444
/// Version 4 of AST files also requires that the version control branch and
4545
/// revision match exactly, since there is no backward compatibility of
4646
/// AST files at this time.
47-
const unsigned VERSION_MAJOR = 31;
47+
const unsigned VERSION_MAJOR = 32;
4848

4949
/// AST file minor version number supported by this version of
5050
/// Clang.
@@ -54,7 +54,7 @@ const unsigned VERSION_MAJOR = 31;
5454
/// for the previous version could still support reading the new
5555
/// version by ignoring new kinds of subblocks), this number
5656
/// should be increased.
57-
const unsigned VERSION_MINOR = 1;
57+
const unsigned VERSION_MINOR = 0;
5858

5959
/// An ID number that refers to an identifier in an AST file.
6060
///

clang/include/clang/Serialization/ASTReader.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2335,6 +2335,8 @@ class ASTReader
23352335
/// Translate a FileID from another module file's FileID space into ours.
23362336
FileID TranslateFileID(ModuleFile &F, FileID FID) const {
23372337
assert(FID.ID >= 0 && "Reading non-local FileID.");
2338+
if (FID.isInvalid())
2339+
return FID;
23382340
return FileID::get(F.SLocEntryBaseID + FID.ID - 1);
23392341
}
23402342

clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,10 +601,14 @@ void handleNonConstMemberCall(const CallExpr *CE,
601601
dataflow::RecordStorageLocation *RecordLoc,
602602
const MatchFinder::MatchResult &Result,
603603
LatticeTransferState &State) {
604-
// When a non-const member function is called, reset some state.
605604
if (RecordLoc != nullptr) {
605+
// When a non-const member function is called, clear all (non-const)
606+
// optional fields of the receiver. Const-qualified fields can't be
607+
// changed (at least, not without UB).
606608
for (const auto &[Field, FieldLoc] : RecordLoc->children()) {
607-
if (isSupportedOptionalType(Field->getType())) {
609+
QualType FieldType = Field->getType();
610+
if (!FieldType.isConstQualified() &&
611+
isSupportedOptionalType(Field->getType())) {
608612
auto *FieldRecordLoc = cast_or_null<RecordStorageLocation>(FieldLoc);
609613
if (FieldRecordLoc) {
610614
setHasValue(*FieldRecordLoc, State.Env.makeAtomicBoolValue(),

clang/lib/Basic/LangOptions.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ void LangOptions::setLangDefaults(LangOptions &Opts, Language Lang,
203203
Opts.setDefaultFPContractMode(LangOptions::FPM_Fast);
204204
}
205205

206-
Opts.RenderScript = Lang == Language::RenderScript;
207-
208206
// OpenCL, C++ and C23 have bool, true, false keywords.
209207
Opts.Bool = Opts.OpenCL || Opts.CPlusPlus || Opts.C23;
210208

clang/lib/Basic/LangStandards.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ StringRef clang::languageToString(Language L) {
3737
return "OpenCLC++";
3838
case Language::CUDA:
3939
return "CUDA";
40-
case Language::RenderScript:
41-
return "RenderScript";
4240
case Language::HIP:
4341
return "HIP";
4442
case Language::HLSL:
@@ -114,8 +112,6 @@ LangStandard::Kind clang::getDefaultLanguageStandard(clang::Language Lang,
114112
case Language::CUDA:
115113
case Language::HIP:
116114
return LangStandard::lang_gnucxx17;
117-
case Language::RenderScript:
118-
return LangStandard::lang_c99;
119115
case Language::HLSL:
120116
return LangStandard::lang_hlsl202x;
121117
}

clang/lib/Basic/TargetInfo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ TargetInfo::TargetInfo(const llvm::Triple &T) : Triple(T) {
154154
SSERegParmMax = 0;
155155
HasAlignMac68kSupport = false;
156156
HasBuiltinMSVaList = false;
157-
IsRenderScriptTarget = false;
158157
HasAArch64SVETypes = false;
159158
HasRISCVVTypes = false;
160159
AllowAMDGPUUnsafeFPAtomics = false;

clang/lib/Basic/Targets.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -710,12 +710,6 @@ std::unique_ptr<TargetInfo> AllocateTarget(const llvm::Triple &Triple,
710710

711711
case llvm::Triple::dxil:
712712
return std::make_unique<DirectXTargetInfo>(Triple, Opts);
713-
case llvm::Triple::renderscript32:
714-
return std::make_unique<LinuxTargetInfo<RenderScript32TargetInfo>>(Triple,
715-
Opts);
716-
case llvm::Triple::renderscript64:
717-
return std::make_unique<LinuxTargetInfo<RenderScript64TargetInfo>>(Triple,
718-
Opts);
719713

720714
case llvm::Triple::ve:
721715
return std::make_unique<LinuxTargetInfo<VETargetInfo>>(Triple, Opts);

0 commit comments

Comments
 (0)