search for: validateasmconstraint

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

2015 Mar 03
5
[LLVMdev] Inline Assembly: Memory constraints with offsets
Hi, I'm trying to implement the ZC inline assembly constraint for Mips. This constraint is a memory constraint that expands to an address with an offset (the range of the offset varies according to the subtarget), so the inline assembly in: int data[10]; void ZC(void) { asm volatile ("foo %0 %1" : : "ZC"(data[1]), "ZC"(data[2])); } Should expand to
2015 Mar 04
2
[LLVMdev] Inline Assembly: Memory constraints with offsets
...sa.c > mipsa.c:4:33: error: invalid input constraint 'ZC' in asm > asm volatile ("foo %0 %1" : : "ZC"(data[1]), "ZC"(data[2])); > ^ > 1 error generated. > > > It doesn't seem that the function "validateAsmConstraint" in > tools/clang/lib/Basic/Targets.cpp handles "ZC" as a constraint. > > -Krzysztof Partial support for ZC is in my working copy at the moment. I've attached my WIP patches. > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, > hosted...
2015 Aug 18
3
[RFC PATCH 1/2] [clang]: Add AuxAttr support
This patch adds EmitTypeAuxAttribute() function to CGDebugInfo, which allows other parts of clang issue auxiliary information through an enumeration type in Dwarf information. For example, by calling DI->EmitTypeAuxAttribute(type, "ID", 1234); We can get following information in dwarf: <1><3f>: Abbrev Number: 3 (DW_TAG_structure_type) <40> DW_AT_name