Survey-on-LLVM-Vector

用例

1
2
3
4
5
#include <arm_neon.h>
uint32x4_t test(uint32x4_t n) {

return n;
}
1
2
3
4
5
#include <arm_neon.h>
uint32x4_t test(uint32x4_t a, uint32x4_t b) {

return a + b;
}

代码

1
typedef __attribute__((neon_vector_type(4))) uint32_t uint32x4_t;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
AST:
ASTContext.h
Type.h
TypeProperties.td

Basic:
RISCVVTypes.def
TargetInfo.h
RISCV.h


Serialization:
ASTBitCodes.h
ASTReader.cpp

CodeGen:
CGDebugInfo.cpp
CodeGenTypes.cpp
ItaniumCXXABI.cpp

Index:
USRGeneration.cpp

Sema:
Sema.cpp
SemaExpr.cpp

module.modulemap

test:
riscv-types.c
1
2
3
4
5
6
7
8
InitBuiltinTypes
getTypeInfoImpl
getBuiltinVectorTypeInfo
getScalableVectorType
getObjCEncodingForPrimitiveType

VisitBuiltinType
EvaluateBuiltinClassifyType
1
clang  -ast-print