File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
llvm/include/llvm/Frontend/Driver Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,19 @@ class TargetLibraryInfoImpl;
1919} // namespace llvm
2020
2121namespace llvm ::driver {
22+ // The current supported vector libraries in enum \VectorLibrary are 9(including
23+ // the NoLibrary). Changing the bitcount from 3 to 4 so that more than 8 values
24+ // can be supported. Now the maximum number of vector libraries supported
25+ // increase from 8(2^3) to 16(2^4).
26+ //
27+ // ENUM_CODEGENOPT(VecLib, llvm::driver::VectorLibrary,
28+ // <bitcount>4</bitcount>, llvm::driver::VectorLibrary::NoLibrary) is the
29+ // currently defined in clang/include/clang/Basic/CodeGenOptions.def
30+ // bitcount is the number of bits used to represent the enum value.
31+ //
32+ // IMPORTANT NOTE: When adding a new vector library support, and if count of
33+ // supported vector libraries crosses the current max limit. Please increment
34+ // the bitcount value.
2235
2336// / Vector library option used with -fveclib=
2437enum class VectorLibrary {
You can’t perform that action at this time.
0 commit comments