LLVM: include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/TransactionAlwaysRevert.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_TRANSACTIONALWAYSREVERT_H

14#define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_TRANSACTIONALWAYSREVERT_H

15

18

20

22public:

28 return HasChanges;

29 }

30};

31

32}

33

34#endif

static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")

RegionPass(StringRef Name)

Name can't contain any spaces or start with '-'.

The main job of the Region is to point to new instructions generated by vectorization passes.

The tracker collects all the change objects and implements the main API for saving / reverting / acce...

LLVM_ABI void revert()

Stops tracking and reverts to saved state.

bool empty() const

\Returns true if there are no changes tracked.

Context & getContext() const

bool runOnRegion(Region &Rgn, const Analyses &A) final

\Returns true if it modifies R.

Definition TransactionAlwaysRevert.h:24

TransactionAlwaysRevert()

Definition TransactionAlwaysRevert.h:23