forked from mabragor/cg-llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-post.lisp
More file actions
36 lines (31 loc) · 1.29 KB
/
package-post.lisp
File metadata and controls
36 lines (31 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(in-package #:cl-user)
(defmacro proxy-package ((from-package to-package) &body symbols)
`(defpackage ,from-package
(:shadowing-import-from ,to-package ,@symbols)
(:export ,@symbols)))
(proxy-package (#:cg-llvm-symbols #:cg-llvm)
;; terminator instructions
#:ret #:br #:switch #:indirectbr #:invoke #:resume #:unreachable
;; #:catchswitch #:catchret #:cleanupret
;; binary operations
#:add #:fadd #:sub #:fsub #:mul #:fmul #:udiv #:sdiv #:fdiv #:urem #:srem #:frem
;; bitwise binary operations
#:shl #:lshr #:ashr #:and #:or #:xor
;; vector operations
#:extractelement #:insertelement #:shufflevector
;; aggregate operations
#:extractvalue #:insertvalue
;; memory access and addressing operations
#:alloca #:load #:store #:fence #:cmpxchg #:atomicrmw #:getelementptr
;; conversion operations
#:trunc #:zext #:sext #:fptrunc #:fpext #:fptoui #:fptosi #:sitofp
#:ptrtoint #:inttoptr #:bitcast #:addrspacecast
;; other operations
#:icmp #:fcmp #:phi #:select #:call #:va_arg #:landingpad
;; #:catchpad #:cleanuppad
;; other symbols
#:meta-str #:meta-node #:meta-id
#:void #:x86-mmx #:nbits #:pointer #:struct #:opaque #:named
#:alias #:comdat #:asm #:target-triple
#:attributes #:target-datalayout #:label #:blockaddress #:module
#:define #:declare)