Skip to content

Commit 57fecd2

Browse files
Rohit AggarwalRohit Aggarwal
authored andcommitted
Updated the comment regarding the vector library support
1 parent ed8a1f9 commit 57fecd2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

llvm/include/llvm/Frontend/Driver/CodeGenOptions.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ class TargetLibraryInfoImpl;
1919
} // namespace llvm
2020

2121
namespace 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=
2437
enum class VectorLibrary {

0 commit comments

Comments
 (0)