DtoType doc

This commit is contained in:
Alexey Prokhin
2013-10-05 19:41:43 +04:00
parent 8d54cc539f
commit 19d8845bef

View File

@@ -24,11 +24,19 @@
#include "gen/structs.h"
// D->LLVM type handling stuff
/* The function takes a d type and returns an appropriate llvm type.
*
* Notice that the function does not support function types with context arguments.
* DtoTypeFunction(FuncDeclaration*) is to be used instead.
*/
LLType* DtoType(Type* t);
LLType* voidToI8(LLType* t);
LLType* i1ToI8(LLType* t);
// returns true is the type must be passed by pointer
// returns true if the type must be passed by pointer
bool DtoIsPassedByRef(Type* type);
// should argument be zero or sign extended