Files
hakorune/src/backend/llvm/compiler/codegen/instructions/select.rs

17 lines
624 B
Rust
Raw Normal View History

/*!
* Select & Condition helpers (scaffolding)
*
* Placeholder for condition normalization / short-circuit pre-processing
* to keep `function.rs` focused on structure. Implementations will be
* added incrementally; for now, this module is documentation-only.
*/
use crate::mir::{function::MirFunction, ValueId};
/// Normalize a branch condition if needed (scaffolding).
/// Currently returns the input unchanged; provides a single place
/// to adjust semantics later (e.g., truthy rules, short-circuit pre-pass).
pub(crate) fn normalize_branch_condition(_func: &MirFunction, cond: &ValueId) -> ValueId {
*cond
}