summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.h
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-12-28 16:14:22 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-12-28 18:53:09 +0100
commit57072fa82e24f66ef9bf55a948a0b0daf0f30b71 (patch)
tree3d97f7bf6689e3b18cf7930cfc5799eb48933702 /ir/be/bearch.h
parenta8937c2e780e2ec88404314ca7a7c645645d3dfa (diff)
be: Provide an inline implementation of arch_add_irn_flags().
Diffstat (limited to 'ir/be/bearch.h')
-rw-r--r--ir/be/bearch.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ir/be/bearch.h b/ir/be/bearch.h
index a737804..30e365b 100644
--- a/ir/be/bearch.h
+++ b/ir/be/bearch.h
@@ -157,7 +157,11 @@ static inline arch_irn_flags_t arch_get_irn_flags(const ir_node *node)
return info->flags;
}
-void arch_add_irn_flags(ir_node *node, arch_irn_flags_t flags);
+static inline void arch_add_irn_flags(ir_node *const node, arch_irn_flags_t const flags)
+{
+ backend_info_t *const info = be_get_info(node);
+ info->flags |= flags;
+}
/**
* Returns true if the given node should not be scheduled (has