diff options
| author | Denis Merigoux <denis.merigoux@gmail.com> | 2018-09-28 11:40:59 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-16 14:38:19 +0200 |
| commit | 39fd4d92740ce4f838326fbaa101ba951b757e39 (patch) | |
| tree | 286497713cecee02aa8f8747a29f30398d765a22 /src/librustc_codegen_utils | |
| parent | 4ba09ab8d226d4d362e466c7dc744f51869cecc3 (diff) | |
| download | rust-39fd4d92740ce4f838326fbaa101ba951b757e39.tar.gz rust-39fd4d92740ce4f838326fbaa101ba951b757e39.zip | |
Starting to move backend-agnostic code into codegen_utils
IntPredicate moved
Diffstat (limited to 'src/librustc_codegen_utils')
| -rw-r--r-- | src/librustc_codegen_utils/common.rs | 22 | ||||
| -rw-r--r-- | src/librustc_codegen_utils/lib.rs | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/librustc_codegen_utils/common.rs b/src/librustc_codegen_utils/common.rs new file mode 100644 index 00000000000..b5640cfab38 --- /dev/null +++ b/src/librustc_codegen_utils/common.rs @@ -0,0 +1,22 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +pub enum IntPredicate { + IntEQ, + IntNE, + IntUGT, + IntUGE, + IntULT, + IntULE, + IntSGT, + IntSGE, + IntSLT, + IntSLE +} diff --git a/src/librustc_codegen_utils/lib.rs b/src/librustc_codegen_utils/lib.rs index f0ce1e9b0ef..2141a763d16 100644 --- a/src/librustc_codegen_utils/lib.rs +++ b/src/librustc_codegen_utils/lib.rs @@ -54,6 +54,7 @@ pub mod codegen_backend; pub mod symbol_export; pub mod symbol_names; pub mod symbol_names_test; +pub mod common; /// check for the #[rustc_error] annotation, which forces an /// error in codegen. This is used to write compile-fail tests |
