Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /llvm-codegen/src/cfg-prim-codegen.cxx
ViewVC logotype

Diff of /llvm-codegen/src/cfg-prim-codegen.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7116, Tue May 11 19:31:29 2021 UTC revision 7117, Tue May 11 19:46:05 2021 UTC
# Line 196  Line 196 
196    
197      } // ARITH::codegen      } // ARITH::codegen
198    
199      Value *REAL_TO_INT::codegen (code_buffer * buf, Args_t const &args)      Value *FLOAT_TO_INT::codegen (code_buffer * buf, Args_t const &args)
200      {      {
201          return buf->createFPToSI (args[0], buf->iType (this->_v_to));          return buf->createFPToSI (args[0], buf->iType (this->_v_to));
202    
203      } // REAL_TO_INT::codegen      } // FLOAT_TO_INT::codegen
204    
205    
206    /***** code generation for the `pure` type *****/    /***** code generation for the `pure` type *****/
# Line 278  Line 278 
278    
279      } // TRUNC::codegen      } // TRUNC::codegen
280    
281      Value *INT_TO_REAL::codegen (code_buffer * buf, Args_t const &args)      Value *INT_TO_FLOAT::codegen (code_buffer * buf, Args_t const &args)
282      {      {
283          return buf->createSIToFP (args[0], buf->fType(this->_v_to));          return buf->createSIToFP (args[0], buf->fType(this->_v_to));
284    
285      } // INT_TO_REAL::codegen      } // INT_TO_FLOAT::codegen
286    
287        Value *FLOAT_TO_BITS::codegen (code_buffer * buf, Args_t const &args)
288        {
289            return buf->createBitCast (args[0], buf->iType(this->_v_sz));
290    
291        } // FLOAT_TO_BITS::codegen
292    
293        Value *BITS_TO_FLOAT::codegen (code_buffer * buf, Args_t const &args)
294        {
295            return buf->createBitCast (args[0], buf->fType(this->_v_sz));
296    
297        } // BITS_TO_FLOAT::codegen
298    
299      Value *PURE_SUBSCRIPT::codegen (code_buffer * buf, Args_t const &args)      Value *PURE_SUBSCRIPT::codegen (code_buffer * buf, Args_t const &args)
300      {      {

Legend:
Removed from v.7116  
changed lines
  Added in v.7117

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0