aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-backend.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-09-09 13:45:33 +0000
committerGitHub <noreply@github.com>2021-09-09 13:45:33 +0000
commit55f60bd6fe2db6831762e243577515824e2fca5c (patch)
treeb7fa367ee6c97ae3a5b9ab69bb7b1be0e02418c4 /gcc/rust/rust-backend.h
parent38f2795947ab8d8080bab81c5e2ccdd24981cbcc (diff)
parent4faa7d7765f5840779c542430ca6aa9118008a5b (diff)
downloadgcc-55f60bd6fe2db6831762e243577515824e2fca5c.zip
gcc-55f60bd6fe2db6831762e243577515824e2fca5c.tar.gz
gcc-55f60bd6fe2db6831762e243577515824e2fca5c.tar.bz2
Merge #659
659: Initial intrinsics builtin block r=philberty a=philberty This is the initial piece to get the simple intrinsic's mapped over to GCC ones. The GCC wrapper contains a mapping system of rust names over to the builtin gcc names as far as I can tell gcc will allow for fallback onto linking against -lm. I think this will be a nice piece of work for new contributors, given the number of intrinsics Addresses #658 Co-authored-by: Philip Herron <philip.herron@embecosm.com> Co-authored-by: Thomas Schwinge <thomas@codesourcery.com>
Diffstat (limited to 'gcc/rust/rust-backend.h')
-rw-r--r--gcc/rust/rust-backend.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h
index 1af76cf..105b2ea 100644
--- a/gcc/rust/rust-backend.h
+++ b/gcc/rust/rust-backend.h
@@ -842,7 +842,9 @@ public:
// Look up a named built-in function in the current backend implementation.
// Returns NULL if no built-in function by that name exists.
- virtual Bfunction *lookup_builtin (const std::string &) = 0;
+ virtual Bfunction *lookup_gcc_builtin (const std::string &) = 0;
+
+ virtual Bfunction *lookup_builtin_by_rust_name (const std::string &) = 0;
// Utility.