Skip to content

[Headers][X86] Allow SLLDQ/SRLDQ byte shift intrinsics to be used in constexpr #156494

@RKSimon

Description

@RKSimon

The SLLDQ/SRLDQ byte shift intrinsics can be used in constant expression

_mm_slli_si128 _mm256_slli_si256
_mm_srli_si128 _mm256_srli_si256

These will require handling inside VectorExprEvaluator::VisitCallExpr / InterpretBuiltin

NOTE: Ensure you handle out of bounds correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:X86clang:frontendLanguage frontend issues, e.g. anything involving "Sema"clang:headersHeaders provided by Clang, e.g. for intrinsicsconstexprAnything related to constant evaluationgood first issuehttps://github.com/llvm/llvm-project/contribute

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions