Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add license to source code #62

Merged
merged 3 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/alloc.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
// TODO: Heap cloning, with two optimizations:
//
// - Stack allocations with non-pointer-containing types need not have contexts
Expand Down
1 change: 1 addition & 0 deletions src/analysis.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
pub mod callgraph;
pub use callgraph::*;
pub mod int;
Expand Down
1 change: 1 addition & 0 deletions src/analysis/callgraph.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
//! Callgraph analysis
//!
//! TODO:
Expand Down
1 change: 1 addition & 0 deletions src/analysis/int.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
//! Integer analysis

use std::collections::HashMap;
Expand Down
1 change: 1 addition & 0 deletions src/analysis/pointer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
// TODO: Handle global aliases
use std::collections::{HashMap, HashSet};

Expand Down
1 change: 1 addition & 0 deletions src/arc.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
#[cfg(not(feature = "precompute"))]
mod cached;
#[cfg(not(feature = "precompute"))]
Expand Down
1 change: 1 addition & 0 deletions src/arc/cached.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::fmt::{Debug, Display};
use std::hash::Hash;
use std::ops::Deref;
Expand Down
1 change: 1 addition & 0 deletions src/arc/precomputed.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::fmt::{Debug, Display};
use std::hash::Hash;
use std::ops::Deref;
Expand Down
1 change: 1 addition & 0 deletions src/arc/uarc.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::fmt::Display;
use std::hash::Hash;
use std::ptr;
Expand Down
1 change: 1 addition & 0 deletions src/bin/int.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::collections::HashMap;
use std::io::{self, Write};

Expand Down
1 change: 1 addition & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::fmt;
use std::path::PathBuf;

Expand Down
1 change: 1 addition & 0 deletions src/hash.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
mod cached;
mod precomputed;
pub(crate) use precomputed::*;
Expand Down
1 change: 1 addition & 0 deletions src/hash/cached.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
// TODO(lb): Add LICENSE from OnceCell

#![allow(unused)]
Expand Down
1 change: 1 addition & 0 deletions src/hash/precomputed.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::hash::Hash;
use std::marker::PhantomData;

Expand Down
1 change: 1 addition & 0 deletions src/hash/prehashed.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::fmt::{Debug, Display};
use std::hash::Hash;

Expand Down
1 change: 1 addition & 0 deletions src/hash/ref.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::fmt::Display;
use std::hash::Hash;
use std::ptr;
Expand Down
1 change: 1 addition & 0 deletions src/klimited.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
// TODO: Specialize for 1-9 or so? `pushed` is where many heap allocations happen.
use std::collections::VecDeque;

Expand Down
1 change: 1 addition & 0 deletions src/lattice.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
//! Lattice for values of integer variables

use ascent::{lattice::constant_propagation::ConstPropagation, Lattice};
Expand Down
1 change: 1 addition & 0 deletions src/layers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
pub mod counts;
pub use counts::*;
pub mod nanos;
Expand Down
1 change: 1 addition & 0 deletions src/layers/counts.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use tracing::{Id, Subscriber};
use tracing_subscriber::{layer::Context, registry::LookupSpan, Layer};

Expand Down
1 change: 1 addition & 0 deletions src/layers/nanos.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::time::{Duration, SystemTime};

use dashmap::DashMap;
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
mod alloc;
pub use alloc::*;
pub mod analysis;
Expand Down
1 change: 1 addition & 0 deletions src/llvm.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
//! Representation of an LLVM module that is amenable to analysis. In
//! particular, Ascent values must implement `Clone`, `Hash`, and `Eq`. Since
//! the LLVM AST contains floats, and floats don't implement `Eq`, we must
Expand Down
1 change: 1 addition & 0 deletions src/llvm/constant.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::{collections::HashMap, fmt::Display};

use crate::arc::{Arc, UArc};
Expand Down
1 change: 1 addition & 0 deletions src/llvm/error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
#[derive(Clone, Debug, Default, Hash, PartialEq, Eq, thiserror::Error)]
pub struct Error(pub String);

Expand Down
1 change: 1 addition & 0 deletions src/llvm/instruction.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::collections::HashMap;

use either::Either;
Expand Down
1 change: 1 addition & 0 deletions src/llvm/name.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::fmt::Display;

use llvm_ir::{
Expand Down
1 change: 1 addition & 0 deletions src/llvm/operand.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::collections::HashMap;

use llvm_ir::Name;
Expand Down
1 change: 1 addition & 0 deletions src/llvm/terminator.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::collections::HashMap;

use either::Either;
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::collections::HashMap;
use std::io::{self, Write};

Expand Down
1 change: 1 addition & 0 deletions src/signatures.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::collections::HashMap;

use regex::RegexSet;
Expand Down
1 change: 1 addition & 0 deletions src/union.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause
use std::ops::{Deref, DerefMut};

use crate::arc::Arc;
Expand Down