[LLVMdev] Issues with the llvm.stackrestore intrinsic

Anton Korobeynikov anton at korobeynikov.info
Wed Feb 1 08:05:19 PST 2012


Hello Patrik,

> In Intrinsics.td it says
>
> // Note: we treat stacksave/stackrestore as writemem because we don't
> otherwise
> // model their dependencies on allocas.
> def int_stacksave     : Intrinsic<[llvm_ptr_ty]>,
>                          GCCBuiltin<"__builtin_stack_save">;
> def int_stackrestore  : Intrinsic<[], [llvm_ptr_ty]>,
>                          GCCBuiltin<"__builtin_stack_restore">;
>
> Does "GCCBuiltin" imply "writemem", or how does the comment and the code
> correspond?
"writemem" is by default. Look into the beginning of this .td file for
description of various flags.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-dev mailing list