Displaying 2 results from an estimated 2 matches for "createexceptionvalu".
Did you mean:
createexceptionvalues
2009 May 07
0
[LLVMdev] llvm-gcc's sjlj-eh support
Hi,
many people suggest that if we want llvm to support sjlj-eh, we
should modify the llvm-gcc to generate sjlj-style IR.
yeah, I'm digging into the llvm-gcc now. there are some functions,
at the llvm-gcc
e.g
TreeToLLVM::CreateExceptionValues() ,
BasicBlock *TreeToLLVM::getPostPad(unsigned RegionNo),
void TreeToLLVM::EmitLandingPads(),
void TreeToLLVM::EmitPostPads() ,
void TreeToLLVM::EmitUnwindBlock()
the above functions are relative for llvm-gcc generate the
exception-IR, but for dwarf-style! so we should change these above
func...
2009 Jan 09
2
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
.../ The type is the type of the expression.
Dest = BitCastToType(Dest,
PointerType::getUnqual(ConvertType(TREE_TYPE(exp))));
- return LValue(Dest);
+ return LValue(Dest, S->getAlignment());
}
}
LValue TreeToLLVM::EmitLV_EXC_PTR_EXPR(tree exp) {
CreateExceptionValues();
// Cast the address pointer to the expected type.
- return BitCastToType(ExceptionValue,
-
PointerType::getUnqual(ConvertType(TREE_TYPE(exp))));
+ unsigned Alignment =
TD.getABITypeAlignment(cast<PointerType>(ExceptionValue->
+...