llvm-project
ee0d7063 - [clang][bytecode] Implement constexpr vector unary operators +, -, ~, ! (#105996)

Commit
1 year ago
[clang][bytecode] Implement constexpr vector unary operators +, -, ~, ! (#105996) Implement constexpr vector unary operators +, -, ~ and ! . - Follow the current constant interpreter. All of our boolean operations on vector types should be '-1' for the 'truth' type. - Move the following functions from `Sema` to `ASTContext`, because we used it in new interpreter. ```C++ QualType GetSignedVectorType(QualType V); QualType GetSignedSizelessVectorType(QualType V); ``` --------- Signed-off-by: yronglin <yronglin777@gmail.com>
Author
Parents
Loading