Introduce CASNodeSchema, which is the common base class for building a schema that can be used to represent an object inside CAS. The schema describes the ways to encode and decode between CAS objects and their representative objects. NamedValuesSchema is a basic schema that describes a sorted list of named nodes, where each node is an object. The names are stored in the root object, allowing users to decide whether to load the objects based on their names.
16 lines
511 B
C++
16 lines
511 B
C++
//===- CASNodeSchema.cpp --------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/CAS/CASNodeSchema.h"
|
|
|
|
using namespace llvm;
|
|
using namespace llvm::cas;
|
|
|
|
char NodeSchema::ID = 0;
|
|
void NodeSchema::anchor() {}
|