-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
acceptedThis proposal is planned.This proposal is planned.contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Description
http://llvm.org/docs/LangRef.html#standard-c-library-intrinsics
http://llvm.org/docs/LangRef.html#bit-manipulation-intrinsics
LLVM has these because
- they can sometimes map to hardware instructions (such as sqrt) (see Add hw sqrt for x86_64 #681)
- LLVM codegen assumes that it can call these functions, which is why we have to provide compiler_rt.o
- additional optimization awareness and integration with fast-math
This issue is to
- implement all the intrinsics in std/special/builtin.zig
- add all the intrinsics as
@builtin functions in zig - most std.math.* functions can just call out to the builtin functions
related: #514
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
acceptedThis proposal is planned.This proposal is planned.contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.This issue suggests modifications. If it also has the "accepted" label then it is planned.