#include "polly/DeLICM.h"
#include "polly/Support/ISLTools.h"
#include "gtest/gtest.h"
#include <isl/map.h>
#include <isl/set.h>
#include <isl/stream.h>
#include <isl/union_map.h>
#include <isl/union_set.h>
#include <memory>
usingnamespacellvm;
usingnamespacepolly;
namespace {
isl::union_set unionSpace(const isl::union_set &USet) { … }
void completeLifetime(isl::union_set Universe, isl::union_map OccupiedAndKnown,
isl::union_set &Occupied, isl::union_map &Known,
isl::union_set &Undef) { … }
KnowledgeStr;
isl::union_set parseSetOrNull(isl_ctx *Ctx, const char *Str) { … }
isl::union_map parseMapOrNull(isl_ctx *Ctx, const char *Str) { … }
bool checkIsConflictingNonsymmetricCommon(
isl_ctx *Ctx, isl::union_map ExistingOccupiedAndKnown,
isl::union_set ExistingUnused, isl::union_map ExistingWritten,
isl::union_map ProposedOccupiedAndKnown, isl::union_set ProposedUnused,
isl::union_map ProposedWritten) { … }
bool checkIsConflictingNonsymmetricKnown(KnowledgeStr Existing,
KnowledgeStr Proposed) { … }
bool checkIsConflictingNonsymmetric(KnowledgeStr Existing,
KnowledgeStr Proposed) { … }
bool checkIsConflicting(KnowledgeStr Existing, KnowledgeStr Proposed) { … }
bool checkIsConflictingKnown(KnowledgeStr Existing, KnowledgeStr Proposed) { … }
TEST(DeLICM, isConflicting) { … }
}