SelectionDAG::getFrameIndex(unsigned FrameIndex, EVT VT)
int FrameIndex = MFI.CreateFixedObject(4, 4, true); SDValue FI = DAG.getFrameIndex(FrameIndex, MVT::i32);This code creates a fixed-sized stack frame object with a size of 4 bytes and an alignment of 4 bytes. Then, it gets the index into the stack frame for the created stack frame object using the SelectionDAG getFrameIndex function. These examples use the SelectionDAG library, which is a part of the LLVM project.