summaryrefslogtreecommitdiff
path: root/gcc/jit/jit-playback.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/jit/jit-playback.h')
-rw-r--r--gcc/jit/jit-playback.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/jit/jit-playback.h b/gcc/jit/jit-playback.h
index c93d7055d43..b18aa4d38da 100644
--- a/gcc/jit/jit-playback.h
+++ b/gcc/jit/jit-playback.h
@@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see
#include <utility> // for std::pair
#include "timevar.h"
+#include "varasm.h"
#include "jit-recording.h"
@@ -180,6 +181,11 @@ public:
rvalue *expr,
type *type_);
+ rvalue *
+ new_bitcast (location *loc,
+ rvalue *expr,
+ type *type_);
+
lvalue *
new_array_access (location *loc,
rvalue *ptr,
@@ -701,6 +707,21 @@ public:
set_decl_section_name (as_tree (), name);
}
+ void
+ set_register_name (const char* reg_name)
+ {
+ set_user_assembler_name (as_tree (), reg_name);
+ DECL_REGISTER (as_tree ()) = 1;
+ DECL_HARD_REGISTER (as_tree ()) = 1;
+ }
+
+ void
+ set_alignment (int alignment)
+ {
+ SET_DECL_ALIGN (as_tree (), alignment * BITS_PER_UNIT);
+ DECL_USER_ALIGN (as_tree ()) = 1;
+ }
+
private:
bool mark_addressable (location *loc);
};