ukalappa-mips wrote:
thank you @topperc , @mshockwave and @lenary for the comments ,please look
out for the updated changes ...
https://github.com/llvm/llvm-project/pull/145647
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.l
Author: SahilPatidar
Date: 2025-06-28T08:42:59+03:00
New Revision: 3f531552e66f242d4bfc0163be848f9e51259d80
URL:
https://github.com/llvm/llvm-project/commit/3f531552e66f242d4bfc0163be848f9e51259d80
DIFF:
https://github.com/llvm/llvm-project/commit/3f531552e66f242d4bfc0163be848f9e51259d80.diff
https://github.com/vgvassilev closed
https://github.com/llvm/llvm-project/pull/144064
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/146195
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Kazu Hirata
Date: 2025-06-27T22:07:34-07:00
New Revision: 7f6d7391cfff6a444e5e15d1de9be429ff1d9edd
URL:
https://github.com/llvm/llvm-project/commit/7f6d7391cfff6a444e5e15d1de9be429ff1d9edd
DIFF:
https://github.com/llvm/llvm-project/commit/7f6d7391cfff6a444e5e15d1de9be429ff1d9edd.diff
L
https://github.com/dtcxzyw approved this pull request.
LGTM. Thank you!
https://github.com/llvm/llvm-project/pull/145474
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Brian Cain
Date: 2025-06-27T23:13:36-05:00
New Revision: c6bd0207141f8fbd4061495b238a70e833f51cb6
URL:
https://github.com/llvm/llvm-project/commit/c6bd0207141f8fbd4061495b238a70e833f51cb6
DIFF:
https://github.com/llvm/llvm-project/commit/c6bd0207141f8fbd4061495b238a70e833f51cb6.diff
LO
https://github.com/androm3da closed
https://github.com/llvm/llvm-project/pull/146193
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-backend-hexagon
Author: Brian Cain (androm3da)
Changes
Reverts llvm/llvm-project#145812
---
Patch is 22.94 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pull/146193.diff
7 Files Affected:
- (modified) clang/l
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Brian Cain (androm3da)
Changes
Reverts llvm/llvm-project#145812
---
Patch is 22.94 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pull/146193.diff
7 Files Affected:
- (modified) clang/lib/Basic/T
https://github.com/androm3da created
https://github.com/llvm/llvm-project/pull/146193
Reverts llvm/llvm-project#145812
>From 038de66cab523ad7719882a96fa51afcd8c9 Mon Sep 17 00:00:00 2001
From: Brian Cain
Date: Fri, 27 Jun 2025 21:52:11 -0500
Subject: [PATCH] Revert "[Hexagon] NFC: Reduce t
qinkunbao wrote:
Hi, can you take a look at the buildbot?
https://lab.llvm.org/buildbot/#/builders/94/builds/8380
https://github.com/llvm/llvm-project/pull/145812
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/
https://github.com/zyn0217 approved this pull request.
https://github.com/llvm/llvm-project/pull/146153
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -2660,6 +2644,122 @@ void X86AsmPrinter::emitCallInstruction(const
llvm::MCInst &MCI) {
OutStreamer->emitInstruction(MCI, getSubtargetInfo());
}
+// Checks whether a NOP is required after a CALL and inserts the NOP, if
+// necessary.
+void X86AsmPrinter::maybeEmitNopAfte
https://github.com/snprajwal updated
https://github.com/llvm/llvm-project/pull/146182
>From 885730f8653edc7bef13b3840f0c662cc354f111 Mon Sep 17 00:00:00 2001
From: Prajwal Nadig
Date: Sat, 28 Jun 2025 01:33:42 +0100
Subject: [PATCH] [ExtractAPI] Format pointers in params correctly
Pointer type
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff HEAD~1 HEAD --extensions c,cpp --
clang/test/ExtractAPI/pointers.c clang/lib/ExtractA
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Prajwal Nadig (snprajwal)
Changes
Pointer types in function parameters must place the asterisk before the
identifier without a space in between. This patch removes the space and also
ensures that pointers to pointers are formatted correct
https://github.com/snprajwal created
https://github.com/llvm/llvm-project/pull/146182
Pointer types in function parameters must place the asterisk before the
identifier without a space in between. This patch removes the space and also
ensures that pointers to pointers are formatted correctly.
@@ -681,7 +681,18 @@
DEFINE_LIBUNWIND_FUNCTION(__libunwind_Registers_arm64_jumpto)
// context struct, because it is allocated on the stack, and an exception
// could clobber the de-allocated portion of the stack after sp has been
// restored.
- ldrx16, [x0, #0x0
andykaylor wrote:
> Is there any reason why this is special a operation and not `cmp` operation
> parameterized by (ne, eq) as for floats, integers?
I like this suggestion.
https://github.com/llvm/llvm-project/pull/146129
___
cfe-commits mailing list
https://github.com/andykaylor approved this pull request.
lgtm
https://github.com/llvm/llvm-project/pull/146167
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -642,9 +642,9 @@ bool SBDebugger::GetDefaultArchitecture(char *arch_name,
size_t arch_name_len) {
ArchSpec default_arch = Target::GetDefaultArchitecture();
if (default_arch.IsValid()) {
- const std::string &triple_str = default_arch.GetTriple().str();
+ c
@@ -463,6 +463,27 @@ class Triple {
const std::string &str() const { return Data; }
+ /// Return the triple string but only keep the first \p N components.
+ ///
+ /// The returned string will preserve the first \p N components exactly the
+ /// same as the original (in
Author: Andy Kaylor
Date: 2025-06-27T16:56:26-07:00
New Revision: 32180cf9f9eb921a793bb208cf3bbfb1b86ee2ae
URL:
https://github.com/llvm/llvm-project/commit/32180cf9f9eb921a793bb208cf3bbfb1b86ee2ae
DIFF:
https://github.com/llvm/llvm-project/commit/32180cf9f9eb921a793bb208cf3bbfb1b86ee2ae.diff
L
https://github.com/andykaylor closed
https://github.com/llvm/llvm-project/pull/145979
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -76,3 +77,31 @@ void def() {
T t;
U u;
}
+
+int load_field(S* s) {
+ return s->c;
andykaylor wrote:
Can you add a test case with an unsigned field?
https://github.com/llvm/llvm-project/pull/145971
___
cfe-co
@@ -2244,6 +2245,54 @@ mlir::LogicalResult
CIRToLLVMComplexImagOpLowering::matchAndRewrite(
return mlir::success();
}
+mlir::LogicalResult CIRToLLVMGetBitfieldOpLowering::matchAndRewrite(
+cir::GetBitfieldOp op, OpAdaptor adaptor,
+mlir::ConversionPatternRewriter &r
@@ -65,6 +65,10 @@ struct CIROpAsmDialectInterface : public
OpAsmDialectInterface {
os << (boolAttr.getValue() ? "true" : "false");
return AliasResult::FinalAlias;
}
+if (auto bitfield = mlir::dyn_cast(attr)) {
andykaylor wrote:
Can you ad
@@ -2244,6 +2245,54 @@ mlir::LogicalResult
CIRToLLVMComplexImagOpLowering::matchAndRewrite(
return mlir::success();
}
+mlir::LogicalResult CIRToLLVMGetBitfieldOpLowering::matchAndRewrite(
+cir::GetBitfieldOp op, OpAdaptor adaptor,
+mlir::ConversionPatternRewriter &r
@@ -326,13 +326,61 @@ mlir::Value
CIRGenFunction::emitStoreThroughBitfieldLValue(RValue src,
return {};
}
+RValue CIRGenFunction::emitLoadOfBitfieldLValue(LValue lv, SourceLocation loc)
{
+ const CIRGenBitFieldInfo &info = lv.getBitFieldInfo();
+
+ // Get the output type
@@ -405,6 +406,16 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy {
return createGlobal(module, loc, uniqueName, type, linkage);
}
+
+ mlir::Value createGetBitfield(mlir::Location loc, mlir::Type resultType,
+mlir::Value addr, mli
@@ -375,4 +375,42 @@ def CIR_VisibilityAttr : CIR_EnumAttr {
}];
}
+//===--===//
+// BitfieldInfoAttr
+//===--===//
+
+def BitfieldInfoAttr
@@ -375,4 +375,42 @@ def CIR_VisibilityAttr : CIR_EnumAttr {
}];
}
+//===--===//
+// BitfieldInfoAttr
+//===--===//
+
+def BitfieldInfoAttr
https://github.com/evelez7 updated
https://github.com/llvm/llvm-project/pull/146164
>From 111fe87d9a6590d4d667271f1261af04ca088723 Mon Sep 17 00:00:00 2001
From: Erick Velez
Date: Thu, 26 Jun 2025 20:51:33 -0700
Subject: [PATCH] [clang-doc] Precommit friends test
---
.../test/clang-doc/json/c
Author: Erick Velez
Date: 2025-06-27T16:17:39-07:00
New Revision: 6d817810daa16667d8e3de5daf82f801bfba3e00
URL:
https://github.com/llvm/llvm-project/commit/6d817810daa16667d8e3de5daf82f801bfba3e00
DIFF:
https://github.com/llvm/llvm-project/commit/6d817810daa16667d8e3de5daf82f801bfba3e00.diff
L
https://github.com/evelez7 edited
https://github.com/llvm/llvm-project/pull/146164
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/evelez7 closed
https://github.com/llvm/llvm-project/pull/146149
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -7248,6 +7250,22 @@ QualType
TreeTransform::TransformDependentBitIntType(
return Result;
}
+template
+QualType TreeTransform::TransformPredefinedSugarType(
+TypeLocBuilder &TLB, PredefinedSugarTypeLoc TL) {
+ const PredefinedSugarType *EIT = TL.getTypePtr();
+ Qua
evelez7 wrote:
### Merge activity
* **Jun 27, 11:16 PM UTC**: A user started a stack merge that includes this
pull request via
[Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/146149).
https://github.com/llvm/llvm-project/pull/146149
___
khuey wrote:
@dwblaikie could you take a look at this?
https://github.com/llvm/llvm-project/pull/146175
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-debuginfo
Author: Kyle Huey (khuey)
Changes
Without this, it's impossible to get debuginfo for a nested type that is unused
(or that clang mistakenly believes is unused due to e.g. deficiencies in
-debug-info-kind=limited), e
llvmbot wrote:
@llvm/pr-subscribers-clang-codegen
Author: Kyle Huey (khuey)
Changes
Without this, it's impossible to get debuginfo for a nested type that is unused
(or that clang mistakenly believes is unused due to e.g. deficiencies in
-debug-info-kind=limited), even by marking the "unu
https://github.com/khuey created
https://github.com/llvm/llvm-project/pull/146175
Without this, it's impossible to get debuginfo for a nested type that is unused
(or that clang mistakenly believes is unused due to e.g. deficiencies in
-debug-info-kind=limited), even by marking the "unused" nes
https://github.com/evelez7 edited
https://github.com/llvm/llvm-project/pull/146149
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -5216,6 +5237,25 @@ QualType ASTContext::getDependentBitIntType(bool
IsUnsigned,
return QualType(New, 0);
}
+QualType ASTContext::getPredefinedSugarType(uint32_t KD) const {
+ using Kind = PredefinedSugarType::Kind;
+ auto getUnderlyingType = [](const ASTContext &Ctx,
@@ -6796,14 +6836,25 @@ QualType ASTContext::getTagDeclType(const TagDecl
*Decl) const {
/// getSizeType - Return the unique type for "size_t" (C99 7.17), the result
/// of the sizeof operator (C99 6.5.3.4p4). The value is target dependent and
/// needs to agree with the defin
https://github.com/ilovepi approved this pull request.
LGTM. Maybe use `[clang-doc] Serialize IsBuiltIn and IsTemplate for types` as
the title?
https://github.com/llvm/llvm-project/pull/146149
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
ht
@@ -1516,6 +1516,23 @@ void ASTContext::InitBuiltinTypes(const TargetInfo
&Target,
MSGuidTagDecl = buildImplicitRecord("_GUID");
getTranslationUnitDecl()->addDecl(MSGuidTagDecl);
}
+
+ // size_t (C99TC3 6.5.3.4), signed size_t (C++23 5.13.2) and
+ // ptrdiff_t (C99
@@ -258,6 +258,30 @@ void CIRGenFunction::emitDelegateCXXConstructorCall(
/*Delegating=*/true, thisAddr, delegateArgs, loc);
}
+void CIRGenFunction::emitImplicitAssignmentOperatorBody(FunctionArgList &args)
{
+ const auto *assignOp = cast(curGD.getDe
@@ -2767,6 +2767,10 @@ class DependentBitIntTypeLoc final
: public InheritingConcreteTypeLoc {};
+class PredefinedSugarTypeLoc final
+: public InheritingConcreteTypeLoc {};
YexuanXiao wrote:
Same as the [comment for
TreeTransform.h](https://github.com
@@ -200,38 +81,38 @@ struct DescriptorTableClause {
uint32_t NumDescriptors = 1;
uint32_t Space = 0;
uint32_t Offset = DescriptorTableOffsetAppend;
- DescriptorRangeFlags Flags;
+ dxbc::DescriptorRangeFlags Flags;
void setDefaultFlags() {
switch (Type) {
@@ -205,20 +205,22 @@ TEST_F(ParseHLSLRootSignatureTest,
ValidParseDTClausesTest) {
ASSERT_EQ(std::get(Elem).Space, 0u);
ASSERT_EQ(std::get(Elem).Offset,
DescriptorTableOffsetAppend);
+ auto ValidDescriptorRangeFlags = llvm::dxbc::DescriptorRangeFlags(0x1000f)
@@ -2258,6 +2258,27 @@ class alignas(TypeAlignment) Type : public
ExtQualsTypeCommonBase {
unsigned NumExpansions;
};
+ enum class PredefinedSugarKind {
+/// The "size_t" type.
+SizeT,
+
+/// The "signed size_t" type.
mizvekov wrote:
Well
https://github.com/inbelic edited
https://github.com/llvm/llvm-project/pull/145986
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -404,7 +417,7 @@ TEST_F(ParseHLSLRootSignatureTest, ValidSamplerFlagsTest) {
ASSERT_TRUE(std::holds_alternative(Elem));
ASSERT_EQ(std::get(Elem).Type, ClauseType::Sampler);
ASSERT_EQ(std::get(Elem).Flags,
-DescriptorRangeFlags::ValidSamplerFlags);
-
https://github.com/andykaylor updated
https://github.com/llvm/llvm-project/pull/145979
>From af4621f2944e84801f425bba3c77313ab625e714 Mon Sep 17 00:00:00 2001
From: Andy Kaylor
Date: Fri, 16 May 2025 14:14:21 -0700
Subject: [PATCH 1/2] [CIR] Upstream support for operator assign
This adds suppo
@@ -6796,14 +6836,25 @@ QualType ASTContext::getTagDeclType(const TagDecl
*Decl) const {
/// getSizeType - Return the unique type for "size_t" (C99 7.17), the result
/// of the sizeof operator (C99 6.5.3.4p4). The value is target dependent and
/// needs to agree with the defin
@@ -1567,6 +1567,8 @@ class ASTContext : public RefCountedBase {
/// and bit count.
QualType getDependentBitIntType(bool Unsigned, Expr *BitsExpr) const;
+ QualType getPredefinedSugarType(uint32_t KD) const;
mizvekov wrote:
You can use enums in TypePrope
@@ -1567,6 +1567,8 @@ class ASTContext : public RefCountedBase {
/// and bit count.
QualType getDependentBitIntType(bool Unsigned, Expr *BitsExpr) const;
+ QualType getPredefinedSugarType(uint32_t KD) const;
YexuanXiao wrote:
This function is used by Typ
https://github.com/YexuanXiao deleted
https://github.com/llvm/llvm-project/pull/143653
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -6796,14 +6836,25 @@ QualType ASTContext::getTagDeclType(const TagDecl
*Decl) const {
/// getSizeType - Return the unique type for "size_t" (C99 7.17), the result
/// of the sizeof operator (C99 6.5.3.4p4). The value is target dependent and
/// needs to agree with the defin
@@ -1516,6 +1516,23 @@ void ASTContext::InitBuiltinTypes(const TargetInfo
&Target,
MSGuidTagDecl = buildImplicitRecord("_GUID");
getTranslationUnitDecl()->addDecl(MSGuidTagDecl);
}
+
+ // size_t (C99TC3 6.5.3.4), signed size_t (C++23 5.13.2) and
+ // ptrdiff_t (C99
@@ -2258,6 +2258,27 @@ class alignas(TypeAlignment) Type : public
ExtQualsTypeCommonBase {
unsigned NumExpansions;
};
+ enum class PredefinedSugarKind {
+/// The "size_t" type.
+SizeT,
+
+/// The "signed size_t" type.
YexuanXiao wrote:
@fr
https://github.com/clementval approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/146167
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
erichkeane wrote:
Sorry for the force-push, screwed up the clang-format commit and rather than
spending time backing it out, i hoped no one would be affected.
https://github.com/llvm/llvm-project/pull/146167
___
cfe-commits mailing list
cfe-commits@li
https://github.com/erichkeane updated
https://github.com/llvm/llvm-project/pull/146167
>From f56e646eb2739d4a254a6e9dcc3042c7d14862ea Mon Sep 17 00:00:00 2001
From: erichkeane
Date: Fri, 27 Jun 2025 14:53:15 -0700
Subject: [PATCH] [OpenACC][CIR] Implement 'exit data' construct + clauses
Simila
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff HEAD~1 HEAD --extensions c,cpp --
clang/test/CIR/CodeGenOpenACC/exit-data.c
clang/li
llvmbot wrote:
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-clangir
Author: Erich Keane (erichkeane)
Changes
Similar to 'enter data', except the data clauses have a 'getdeviceptr'
operation before, so that they can properly use the 'exit' operation correctly.
While this is a touch aw
https://github.com/erichkeane created
https://github.com/llvm/llvm-project/pull/146167
Similar to 'enter data', except the data clauses have a 'getdeviceptr'
operation before, so that they can properly use the 'exit' operation correctly.
While this is a touch awkward, it fits perfectly into t
nilanjana87 wrote:
> We evaluated profi internally (at Google) last year. Our configuration uses
> AutoFDO with [flow-sensitive discriminators
> ](https://lists.llvm.org/pipermail/llvm-dev/2020-November/146694.html)
> (FS-AFDO). We found slight regressions with this configuration and didn't
>
https://github.com/shafik closed
https://github.com/llvm/llvm-project/pull/146127
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Shafik Yaghmour
Date: 2025-06-27T14:53:20-07:00
New Revision: 8bc61cbfde28c014b8d18ae8066f1371808d2aa7
URL:
https://github.com/llvm/llvm-project/commit/8bc61cbfde28c014b8d18ae8066f1371808d2aa7
DIFF:
https://github.com/llvm/llvm-project/commit/8bc61cbfde28c014b8d18ae8066f1371808d2aa7.dif
https://github.com/mizvekov edited
https://github.com/llvm/llvm-project/pull/143653
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ojhunt wrote:
Re: the oracle concerns - there are some protections we have, but in general I
think the current pointer auth semantics/diagnostics make it too easy to
silently introduce oracles. Additionally a lot of the current unwind
pointerauth work is focused on protecting the ABI boundarie
@@ -2258,6 +2258,27 @@ class alignas(TypeAlignment) Type : public
ExtQualsTypeCommonBase {
unsigned NumExpansions;
};
+ enum class PredefinedSugarKind {
+/// The "size_t" type.
+SizeT,
+
+/// The "signed size_t" type.
mizvekov wrote:
```su
@@ -2767,6 +2767,10 @@ class DependentBitIntTypeLoc final
: public InheritingConcreteTypeLoc {};
+class PredefinedSugarTypeLoc final
+: public InheritingConcreteTypeLoc {};
mizvekov wrote:
These should ideally never be used in practice, as a Predefined
@@ -5216,6 +5237,25 @@ QualType ASTContext::getDependentBitIntType(bool
IsUnsigned,
return QualType(New, 0);
}
+QualType ASTContext::getPredefinedSugarType(uint32_t KD) const {
+ using Kind = PredefinedSugarType::Kind;
+ auto getUnderlyingType = [](const ASTContext &Ctx,
@@ -1480,6 +1480,16 @@ static bool
IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
return false;
break;
}
+ case Type::PredefinedSugar: {
+const auto *TP1 = cast(T1);
+const auto *TP2 = cast(T2);
+if (TP1->getKind() != TP2->getKind())
+
@@ -6796,14 +6836,25 @@ QualType ASTContext::getTagDeclType(const TagDecl
*Decl) const {
/// getSizeType - Return the unique type for "size_t" (C99 7.17), the result
/// of the sizeof operator (C99 6.5.3.4p4). The value is target dependent and
/// needs to agree with the defin
@@ -5622,3 +5622,15 @@
HLSLAttributedResourceType::findHandleTypeOnResource(const Type *RT) {
}
return nullptr;
}
+
+StringRef PredefinedSugarType::getName() const {
+ switch (getKind()) {
+ case Kind::SizeT:
+return "__size_t";
+ case Kind::SignedSizeT:
+return
@@ -8038,6 +8060,32 @@ class DependentBitIntType final : public Type, public
llvm::FoldingSetNode {
}
};
+class PredefinedSugarType final : public Type {
+public:
+ friend class ASTContext;
+ using Kind = PredefinedSugarKind;
+
+private:
+ PredefinedSugarType(Kind KD, Qu
@@ -1567,6 +1567,8 @@ class ASTContext : public RefCountedBase {
/// and bit count.
QualType getDependentBitIntType(bool Unsigned, Expr *BitsExpr) const;
+ QualType getPredefinedSugarType(uint32_t KD) const;
mizvekov wrote:
It would be more helpful and l
@@ -1516,6 +1516,23 @@ void ASTContext::InitBuiltinTypes(const TargetInfo
&Target,
MSGuidTagDecl = buildImplicitRecord("_GUID");
getTranslationUnitDecl()->addDecl(MSGuidTagDecl);
}
+
+ // size_t (C99TC3 6.5.3.4), signed size_t (C++23 5.13.2) and
+ // ptrdiff_t (C99
@@ -5216,6 +5237,25 @@ QualType ASTContext::getDependentBitIntType(bool
IsUnsigned,
return QualType(New, 0);
}
+QualType ASTContext::getPredefinedSugarType(uint32_t KD) const {
+ using Kind = PredefinedSugarType::Kind;
+ auto getUnderlyingType = [](const ASTContext &Ctx,
@@ -8038,6 +8060,32 @@ class DependentBitIntType final : public Type, public
llvm::FoldingSetNode {
}
};
+class PredefinedSugarType final : public Type {
+public:
+ friend class ASTContext;
+ using Kind = PredefinedSugarKind;
+
+private:
+ PredefinedSugarType(Kind KD, Qu
https://github.com/mizvekov commented:
Thanks, this looks good!
It would be awesome to use these in existing cases which we handle with a
builtin typedef, as this would be helpful to validate the design, but this is
not required and doesn't need to be part of this PR.
https://github.com/llvm/
@@ -7248,6 +7250,22 @@ QualType
TreeTransform::TransformDependentBitIntType(
return Result;
}
+template
+QualType TreeTransform::TransformPredefinedSugarType(
+TypeLocBuilder &TLB, PredefinedSugarTypeLoc TL) {
+ const PredefinedSugarType *EIT = TL.getTypePtr();
+ Qua
@@ -14526,6 +14564,9 @@ static QualType getCommonSugarTypeNode(ASTContext &Ctx,
const Type *X,
DX->isCountInBytes(), DX->isOrNull(),
CDX);
}
+ case Type::PredefinedSugar:
+// FIXME: Should this
https://github.com/mizvekov edited
https://github.com/llvm/llvm-project/pull/143653
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/jurahul edited
https://github.com/llvm/llvm-project/pull/144930
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/jurahul edited
https://github.com/llvm/llvm-project/pull/144930
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Andres-Salamanca updated
https://github.com/llvm/llvm-project/pull/145971
>From d2e19a9ce2270ae9d764f1e2ba3978aaab2c1e2a Mon Sep 17 00:00:00 2001
From: Andres Salamanca
Date: Thu, 26 Jun 2025 15:51:02 -0500
Subject: [PATCH 1/4] Get Lvalue for bit-field
---
clang/include/cla
jurahul wrote:
That was fast! Thanks
https://github.com/llvm/llvm-project/pull/144930
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Andres-Salamanca updated
https://github.com/llvm/llvm-project/pull/145971
>From d2e19a9ce2270ae9d764f1e2ba3978aaab2c1e2a Mon Sep 17 00:00:00 2001
From: Andres Salamanca
Date: Thu, 26 Jun 2025 15:51:02 -0500
Subject: [PATCH 1/3] Get Lvalue for bit-field
---
clang/include/cla
https://github.com/erichkeane approved this pull request.
https://github.com/llvm/llvm-project/pull/144930
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/jurahul updated
https://github.com/llvm/llvm-project/pull/144930
>From ee982b8b2d14b1199f051db53aea4f26899d4d77 Mon Sep 17 00:00:00 2001
From: Rahul Joshi
Date: Thu, 19 Jun 2025 10:25:12 -0700
Subject: [PATCH] [LLVM][Clang] Add and enable strict mode for
`getTrailingObjects`
@@ -404,7 +417,7 @@ TEST_F(ParseHLSLRootSignatureTest, ValidSamplerFlagsTest) {
ASSERT_TRUE(std::holds_alternative(Elem));
ASSERT_EQ(std::get(Elem).Type, ClauseType::Sampler);
ASSERT_EQ(std::get(Elem).Flags,
-DescriptorRangeFlags::ValidSamplerFlags);
-
@@ -200,38 +81,38 @@ struct DescriptorTableClause {
uint32_t NumDescriptors = 1;
uint32_t Space = 0;
uint32_t Offset = DescriptorTableOffsetAppend;
- DescriptorRangeFlags Flags;
+ dxbc::DescriptorRangeFlags Flags;
void setDefaultFlags() {
switch (Type) {
@@ -205,20 +205,22 @@ TEST_F(ParseHLSLRootSignatureTest,
ValidParseDTClausesTest) {
ASSERT_EQ(std::get(Elem).Space, 0u);
ASSERT_EQ(std::get(Elem).Offset,
DescriptorTableOffsetAppend);
+ auto ValidDescriptorRangeFlags = llvm::dxbc::DescriptorRangeFlags(0x1000f)
@@ -326,13 +326,47 @@ mlir::Value
CIRGenFunction::emitStoreThroughBitfieldLValue(RValue src,
return {};
}
+Address CIRGenFunction::getAddrOfBitFieldStorage(LValue base,
+ const FieldDecl *field,
+
1 - 100 of 407 matches
Mail list logo