Skip to content

[feature-request] make vector intrinsics constexpr #30794

Open
@gnzlbg

Description

@gnzlbg
Bugzilla Link 31446
Version trunk
OS All
Depends On #20531 #41806
CC @Bigcheese,@topperc,@erichkeane,@filcab,@RKSimon,@zygoloid,@rotateright

Extended Description

Linear algebra libraries like Eigen3 explicitly vectorize their code. However, because vector intrinsics (SSE, AVX,...) are not constexpr, it is impossible for them to provide an interface that can easily be used both at compile-time and run-time.

Duplicating all their code for running at compile-time is not an option.

A first step towards allowing these libraries to be usable within constant expressions would be to make the vector intrinsics constexpr and allowing their evaluation at compile-time.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillaclang:headersHeaders provided by Clang, e.g. for intrinsics

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions