search for: promoteintop_store

Displaying 3 results from an estimated 3 matches for "promoteintop_store".

2008 Dec 12
2
[LLVMdev] LegalizeIntegerType and truncating stores
Hi, In PromoteIntOp_STORE, why can we not promote a value and generate a truncating store if the incoming store is a truncating store? Naively, I can't see why we can promote the incoming value to a legal type and then generate a truncating store. For example, one has incoming code that produces an i16 via so...
2014 Apr 03
5
[LLVMdev] 32bit pointers on a (pure) 64bit architecture
..._GlobalAddress(...)', I get a failure, because a 'store' node now has a mix of operands: - some of the operands were already 'i64' from the beginning, - others were 'i32' (due to the 32bit pointers) and have been promoted to 'i64' Because of the latter, the 'PromoteIntOp_STORE' is called. This uses 'GetPromotedInteger' to access the operands. But, GetPromotedInteger fails if the operand was not promoted. So it fails on the operands of the 'store' that were already legal (i64). What would be the recommended way to fix this ? (Or did I miss something,...
2008 Dec 13
0
[LLVMdev] LegalizeIntegerType and truncating stores
Hi Mon Ping, > In PromoteIntOp_STORE, why can we not promote a value and generate a > truncating store if the incoming store is a truncating store? as far as I can see you can just remove the assertion. Ciao, Duncan.