Forráskód Böngészése

Update Tilde (not working)

gingerBill 1 éve
szülő
commit
e5a816d5dc
2 módosított fájl, 3 hozzáadás és 5 törlés
  1. 3 5
      src/tilde/tb.h
  2. BIN
      src/tilde/tb.lib

+ 3 - 5
src/tilde/tb.h

@@ -336,7 +336,7 @@ typedef enum TB_NodeTypeEnum {
     //   they don't alias there's no ordering guarentee.
     TB_MERGEMEM,    // (Split, Memory...) -> Memory
     //   LOAD and STORE are standard memory accesses, they can be folded away.
-    TB_LOAD,        // (Control?, Memory, Ptr)       -> Data
+    TB_LOAD,        // (Control?, Memory, Ptr)      -> Data
     TB_STORE,       // (Control, Memory, Ptr, Data) -> Memory
     //   bulk memory ops.
     TB_MEMCPY,      // (Control, Memory, Ptr, Ptr, Size)  -> Memory
@@ -381,7 +381,7 @@ typedef enum TB_NodeTypeEnum {
     TB_ZERO_EXT,
     TB_UINT2FLOAT,
     TB_FLOAT2UINT,
-    TB_TAG_INT2FLOAT,
+    TB_INT2FLOAT,
     TB_FLOAT2INT,
     TB_BITCAST,
 
@@ -396,6 +396,7 @@ typedef enum TB_NodeTypeEnum {
 
     // Unary operations
     TB_NEG,
+    TB_FNEG,
 
     // Integer arithmatic
     TB_AND,
@@ -1511,9 +1512,6 @@ TB_API TB_FunctionOutput* tb_codegen(TB_Function* f, TB_Worklist* ws, TB_Arena*
 // interprocedural optimizer iter
 TB_API bool tb_module_ipo(TB_Module* m);
 
-// the user_data is expected to be a valid FILE*
-TB_API void tb_default_print_callback(void* user_data, const char* fmt, ...);
-
 ////////////////////////////////
 // IR access
 ////////////////////////////////

BIN
src/tilde/tb.lib