Skip to content

[Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add SSE/AVX BLEND imm intrinsics to be used in constexpr #157065

@RKSimon

Description

@RKSimon

The blend shuffle intrinsics should be updated to allow them to be used in constexpr

_mm_blend_pd _mm256_blend_pd
_mm_blend_ps _mm256_blend_ps
_mm_blend_epi16 _mm256_blend_epi16 
_mm_blend_epi32 _mm256_blend_epi32 

_mm256_blend_epi16 needs special handling as the imm8 mask is reused per-lane.

NOTE: this isn't the BLENDV intrinsics which need to be handled separately.

Metadata

Metadata

Assignees

Labels

backend:X86clang:bytecodeIssues for the clang bytecode constexpr interpreterclang: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