This is an archive of the discontinued LLVM Phabricator instance.

Add a "split-stack" function attribute.
AbandonedPublic

Authored by luqmana on Oct 11 2013, 6:17 PM.

Details

Summary

Makes it possible to decide whether to use segmented stacks globally or on a per-fn basis.

Diff Detail

Event Timeline

luqmana updated this revision to Unknown Object (????).Oct 18 2013, 3:49 PM

This is going in the right direction.

Sorry for taking so long to review.

include/llvm/CodeGen/CommandFlags.h
194

Why do you need this option? The point of having a positive attribute (split-stack) attribute is that we can remove the existing codegen option.

lib/Target/X86/X86ISelLowering.cpp
10743

Can't you call ExpandDYNAMIC_STACKALLOC?

luqmana added inline comments.Oct 27 2013, 5:24 PM
include/llvm/CodeGen/CommandFlags.h
194

I guess you don't but I didn't want to break any existing stuff relying on setting it globally. I did change the default mode to be the per-fn attribute.

lib/Target/X86/X86ISelLowering.cpp
10743

Is that possible? I wasn't sure of how to and asking in #llvm didn't yield any answers.

luqmana abandoned this revision.Sep 1 2014, 2:28 PM