We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc9a517 commit c6ff653Copy full SHA for c6ff653
llvm/include/llvm/IR/GEPNoWrapFlags.h
@@ -15,6 +15,12 @@
15
16
namespace llvm {
17
18
+/// Represents flags for the getelementptr instruction/expression.
19
+/// The following flags are supported:
20
+/// * inbounds (implies nusw)
21
+/// * nusw (no unsigned signed wrap)
22
+/// * nuw (no unsigned wrap)
23
+/// See LangRef for a description of their semantics.
24
class GEPNoWrapFlags {
25
enum : unsigned {
26
InBoundsFlag = (1 << 0),
@@ -31,6 +37,7 @@ class GEPNoWrapFlags {
31
37
public:
32
38
GEPNoWrapFlags() : Flags(0) {}
33
39
// For historical reasons, interpret plain boolean as InBounds.
40
+ // TODO: Migrate users to pass explicit GEPNoWrapFlags and remove this ctor.
34
41
GEPNoWrapFlags(bool IsInBounds)
35
42
: Flags(IsInBounds ? (InBoundsFlag | NUSWFlag) : 0) {}
36
43
0 commit comments