expand __builtin_bswap*() with constant args
commit9a00fd8a315dc196ef4ab1233f554d594571a601
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 12 Feb 2017 15:11:00 +0000 (12 16:11 +0100)
committerChristopher Li <sparse@chrisli.org>
Mon, 13 Feb 2017 01:37:48 +0000 (13 09:37 +0800)
tree7b61b848ebc55619aa4459431ffba92a6f8f0d11
parentf8cd31e76191d327fdf99e7b7775770380f88bd5
expand __builtin_bswap*() with constant args

Things are greatly simplified now that such builtins can have a
prototype: the args and result are already evaluated, the
arguments number and their type are already checked, etc.

Based-on-patch-by: Christopher Li <sparse@chrisli.org>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
builtin.c
lib.c
lib.h
validation/builtin-args-checking.c [new file with mode: 0644]
validation/builtin-bswap-constant.c [moved from validation/builtin-constant-eval.c with 93% similarity]
validation/builtin-bswap-variable.c [new file with mode: 0644]